mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug #807380: Report to the compiler the function is constructing when entering at a branch, r=dvander
This commit is contained in:
parent
d5189b4ea2
commit
a7b9fd1684
@ -1270,7 +1270,7 @@ ion::CanEnterAtBranch(JSContext *cx, HandleScript script, StackFrame *fp, jsbyte
|
||||
|
||||
// Attempt compilation. Returns Method_Compiled if already compiled.
|
||||
JSFunction *fun = fp->isFunctionFrame() ? fp->fun() : NULL;
|
||||
MethodStatus status = Compile(cx, script, fun, pc, false);
|
||||
MethodStatus status = Compile(cx, script, fun, pc, fp->isConstructing());
|
||||
if (status != Method_Compiled) {
|
||||
if (status == Method_CantCompile)
|
||||
ForbidCompilation(cx, script);
|
||||
|
Loading…
Reference in New Issue
Block a user