docs: @Deprecated
      public static Scriptable toObjectOrNull(Context cx, Object obj)
      {
          if (obj instanceof Scriptable) {
              return (Scriptable)obj;
          } else if (obj != null && obj != Undefined.instance) {
              return toObject(cx, getTopCallScope(cx), obj);
          }
          return null;
      }