docs: public static Object toint32(Context cx, Scriptable thisObj, Object[] args,
                                   Function funObj)
      {
          Object arg = (args.length != 0 ? args[0] : Undefined.instance);
          if (arg instanceof Integer)
              return arg;
          return ScriptRuntime.wrapInt(ScriptRuntime.toInt32(arg));
      }