Bug 599400: handle recompiling top-level script for debugging, r=dvander

--HG--
extra : rebase_source : c74cc4bb3291e9c35c28066378cb1ece852869d2
This commit is contained in:
David Mandelin 2010-09-28 18:39:45 -07:00
parent 4793afb76c
commit f43643b503

View File

@ -152,7 +152,7 @@ Recompiler::recompile()
/* If we get this far, the script is live, and we better be safe to re-jit. */
JS_ASSERT(cx->compartment->debugMode);
Compiler c(cx, script, firstFrame->fun(), &firstFrame->scopeChain());
Compiler c(cx, script, firstFrame->maybeFun(), &firstFrame->scopeChain());
if (c.Compile() != Compile_Okay)
return false;