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

View File

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

View File

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