Bug 568953 - Refactor FunctionNode; r=jorendorff
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user