docs: public static void quit(Context cx, Scriptable thisObj,
                              Object[] args, Function funObj)
      {
          Global global = getInstance(funObj);
          if (global.quitAction != null) {
              int exitCode = (args.length == 0 ? 0
                              : ScriptRuntime.toInt32(args[0]));
              global.quitAction.quit(cx, exitCode);
          }
      }