зеркало из https://github.com/mozilla/gecko-dev.git
Bug #807380: Report to the compiler the function is constructing when entering at a branch, r=dvander
This commit is contained in:
Родитель
bb8f6f0e44
Коммит
87a6dd92fb
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче