Bug 574132 - Implement rest parameters for JavaScript. r=jorendorff.
This commit is contained in:
@@ -84,7 +84,7 @@ frontend::CompileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
|
||||
Probes::compileScriptBegin(filename, lineno);
|
||||
}
|
||||
~ProbesManager() { Probes::compileScriptEnd(filename, lineno); }
|
||||
};
|
||||
};
|
||||
ProbesManager probesManager(filename, lineno);
|
||||
|
||||
/*
|
||||
@@ -231,6 +231,9 @@ frontend::CompileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!parser.checkForArgumentsAndRest())
|
||||
return NULL;
|
||||
|
||||
/*
|
||||
* Nowadays the threaded interpreter needs a stop instruction, so we
|
||||
* do have to emit that here.
|
||||
|
||||
Reference in New Issue
Block a user