Bug 828466 - Remove some ParseNode morphing. Part 1, FoldConstants. r=Waldo.

This commit is contained in:
Jason Orendorff
2013-01-15 16:12:15 -06:00
parent 02a4a24aa4
commit cf825482e9
6 changed files with 123 additions and 126 deletions

View File

@@ -185,7 +185,7 @@ frontend::CompileScript(JSContext *cx, HandleObject scopeChain, AbstractFramePtr
return UnrootedScript(NULL);
}
if (!FoldConstants(cx, pn, &parser))
if (!FoldConstants(cx, &pn, &parser))
return UnrootedScript(NULL);
if (!NameFunctions(cx, pn))
return UnrootedScript(NULL);