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:
parent
c0ffd70f92
commit
5b2c22f62f
js/src
@ -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…
x
Reference in New Issue
Block a user