зеркало из https://github.com/mozilla/gecko-dev.git
Bug 809179 - Reinstate the js -w and -s command-line options. r=dvander
--HG-- extra : rebase_source : 7071d9acc638ea56bbc1532e3284d519db06a498
This commit is contained in:
Родитель
be761c3faf
Коммит
46a73fcb03
|
@ -4577,6 +4577,14 @@ ProcessArgs(JSContext *cx, JSObject *obj_, OptionParser *op)
|
|||
if (op->getBoolOption('c'))
|
||||
compileOnly = true;
|
||||
|
||||
if (op->getBoolOption('w'))
|
||||
reportWarnings = JS_TRUE;
|
||||
else if (op->getBoolOption('W'))
|
||||
reportWarnings = JS_FALSE;
|
||||
|
||||
if (op->getBoolOption('s'))
|
||||
JS_ToggleOptions(cx, JSOPTION_STRICT);
|
||||
|
||||
if (op->getBoolOption("no-jm")) {
|
||||
enableMethodJit = false;
|
||||
JS_ToggleOptions(cx, JSOPTION_METHODJIT);
|
||||
|
@ -4854,6 +4862,9 @@ main(int argc, char **argv, char **envp)
|
|||
|| !op.addBoolOption('n', "ti", "Enable type inference (default)")
|
||||
|| !op.addBoolOption('\0', "no-ti", "Disable type inference")
|
||||
|| !op.addBoolOption('c', "compileonly", "Only compile, don't run (syntax checking mode)")
|
||||
|| !op.addBoolOption('w', "warnings", "Emit warnings")
|
||||
|| !op.addBoolOption('W', "nowarnings", "Don't emit warnings")
|
||||
|| !op.addBoolOption('s', "strict", "Check strictness")
|
||||
|| !op.addBoolOption('d', "debugjit", "Enable runtime debug mode for method JIT code")
|
||||
|| !op.addBoolOption('a', "always-mjit",
|
||||
"Do not try to run in the interpreter before method jitting.")
|
||||
|
|
Загрузка…
Ссылка в новой задаче