Bug 568953 - Refactor FunctionNode; r=jorendorff

This commit is contained in:
Eddy Bruel
2013-02-19 23:06:14 +01:00
parent eb8a9a7485
commit 4c1afb5ec7
8 changed files with 61 additions and 39 deletions

View File

@@ -253,7 +253,7 @@ frontend::CompileFunctionBody(JSContext *cx, HandleFunction fun, CompileOptions
fun->setArgCount(formals.length());
/* FIXME: make Function format the source for a function definition. */
ParseNode *fn = FunctionNode::create(PNK_FUNCTION, &parser);
ParseNode *fn = CodeNode::create(PNK_FUNCTION, &parser);
if (!fn)
return false;