mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1232449 - call{,Content}Function is not a constructor. (r=till)
This commit is contained in:
parent
1944339c10
commit
d29ddfcc63
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user