Bug 574132 - Implement harmony rest parameters. r=jorendorff

This commit is contained in:
Benjamin Peterson
2012-05-21 20:38:05 -04:00
parent cdac73826f
commit 8245f3d6f7
28 changed files with 297 additions and 25 deletions

View File

@@ -227,6 +227,9 @@ frontend::CompileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
}
#endif
if (!parser.checkForArgumentsAndRest())
goto out;
/*
* Nowadays the threaded interpreter needs a stop instruction, so we
* do have to emit that here.