1
0
mirror of https://github.com/classilla/tenfourfox.git synced 2025-03-04 10:30:27 +00:00

Bug 1236875 - Fix BytecodeEmitter::atBodyLevel() for modules r=efaust

This commit is contained in:
Jon Coppeard 2016-01-11 17:08:29 +00:00 committed by Cameron Kaiser
parent c0ffd70f92
commit 5b2c22f62f
2 changed files with 3 additions and 1 deletions
js/src
frontend
jit-test/tests/modules

@ -1385,7 +1385,7 @@ BytecodeEmitter::atBodyLevel(StmtInfoBCE* stmt) const
.enclosingStaticScope() == sc->staticScope());
return bl;
}
return !stmt || sc->isModuleBox();
return !stmt;
}
uint32_t

@ -0,0 +1,2 @@
let m = parseModule(`{ function x() {} }`);
m.declarationInstantiation();