Bug 1232449 - call{,Content}Function is not a constructor. (r=till)

This commit is contained in:
Eric Faust 2015-12-16 19:31:08 -08:00
parent 1944339c10
commit d29ddfcc63

View File

@ -7088,6 +7088,11 @@ BytecodeEmitter::emitSelfHostedCallFunction(ParseNode* pn)
}
ParseNode* pn2 = pn->pn_head;
if (pn->getOp() != JSOP_CALL) {
reportError(pn, JSMSG_NOT_CONSTRUCTOR, pn2->name());
return false;
}
ParseNode* funNode = pn2->pn_next;
if (!emitTree(funNode))
return false;