mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-31 22:49:06 +00:00
Fix arrow function lexical arguments binding, allow rest + arguments
Issue #1547
This commit is contained in:
@@ -65,13 +65,6 @@ SetSourceMap(ExclusiveContext* cx, TokenStream& tokenStream, ScriptSource* ss)
|
||||
static bool
|
||||
CheckArgumentsWithinEval(JSContext* cx, Parser<FullParseHandler>& parser, HandleFunction fun)
|
||||
{
|
||||
if (fun->hasRest()) {
|
||||
// It's an error to use |arguments| in a function that has a rest
|
||||
// parameter.
|
||||
parser.report(ParseError, false, nullptr, JSMSG_ARGUMENTS_AND_REST);
|
||||
return false;
|
||||
}
|
||||
|
||||
RootedScript script(cx, fun->getOrCreateScript(cx));
|
||||
if (!script)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user