mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-31 22:49:06 +00:00
@@ -72,15 +72,9 @@ CheckArgumentsWithinEval(JSContext* cx, Parser<FullParseHandler>& parser, Handle
|
||||
return false;
|
||||
}
|
||||
|
||||
// Force construction of arguments objects for functions that use
|
||||
// |arguments| within an eval.
|
||||
RootedScript script(cx, fun->getOrCreateScript(cx));
|
||||
if (!script)
|
||||
return false;
|
||||
if (script->argumentsHasVarBinding()) {
|
||||
if (!JSScript::argumentsOptimizationFailed(cx, script))
|
||||
return false;
|
||||
}
|
||||
|
||||
// It's an error to use |arguments| in a legacy generator expression.
|
||||
if (script->isGeneratorExp() && script->isLegacyGenerator()) {
|
||||
|
||||
Reference in New Issue
Block a user