Bug 568953 - Refactor FunctionNode; r=jorendorff

This commit is contained in:
Eddy Bruel
2013-02-20 20:15:15 +01:00
parent 7e233fa16d
commit da51b5e082
8 changed files with 65 additions and 43 deletions

View File

@@ -280,7 +280,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;