Bug 770092 (part 1) - Move the new script notification code out of JSScript::fullyInitFromEmitter().

This commit is contained in:
Nicholas Nethercote
2012-07-02 00:01:54 -07:00
parent 0156cb0151
commit a9a99f34a0
4 changed files with 22 additions and 12 deletions

View File

@@ -235,6 +235,8 @@ frontend::CompileScript(JSContext *cx, HandleObject scopeChain, StackFrame *call
if (!script->fullyInitFromEmitter(cx, &bce))
return NULL;
bce.tellDebuggerAboutCompiledScript(cx);
if (!MarkInnerAndOuterFunctions(cx, script))
return NULL;