mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-06-06 06:29:31 +00:00
Bug 1236875 - Fix BytecodeEmitter::atBodyLevel() for modules r=efaust
This commit is contained in:
parent
c0ffd70f92
commit
5b2c22f62f
|
@ -1385,7 +1385,7 @@ BytecodeEmitter::atBodyLevel(StmtInfoBCE* stmt) const
|
|||
.enclosingStaticScope() == sc->staticScope());
|
||||
return bl;
|
||||
}
|
||||
return !stmt || sc->isModuleBox();
|
||||
return !stmt;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
|
|
2
js/src/jit-test/tests/modules/bug-1236875.js
Normal file
2
js/src/jit-test/tests/modules/bug-1236875.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
let m = parseModule(`{ function x() {} }`);
|
||||
m.declarationInstantiation();
|
Loading…
Reference in New Issue
Block a user