Bug 842430 - Only enter baseline script prologue for non-resumeAfter bailouts. r=djvj

This commit is contained in:
Jan de Mooij 2013-02-21 10:04:38 +01:00
parent 27a68c4a62
commit 99aeb87cfa
2 changed files with 6 additions and 1 deletions

View File

@ -520,7 +520,7 @@ InitFromBailout(JSContext *cx, HandleFunction fun, HandleScript script, Snapshot
// Get scope chain from function or script if not already set. If
// pcOffset == 0, we may have to push a new call object, so we leave
// scopeChain NULL and enter baseline code before the prologue.
if (iter.pcOffset() != 0) {
if (iter.pcOffset() != 0 || iter.resumeAfter()) {
if (fun)
scopeChain = fun->environment();
else

View File

@ -0,0 +1,5 @@
test();
function test() {
({}).abstract;
}
test();