mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 756918 - Fix aliased, empty destructuring let (r=waldo)
This commit is contained in:
parent
b57ae8645e
commit
465fca02c3
@ -1033,6 +1033,7 @@ EmitEnterBlock(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn, JSOp op)
|
||||
/* Beware the empty destructuring dummy. */
|
||||
if (!dn) {
|
||||
JS_ASSERT(i + 1 <= blockObj->slotCount());
|
||||
blockObj->setAliased(i, bce->sc->bindingsAccessedDynamically());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
6
js/src/jit-test/tests/basic/testBug756918.js
Normal file
6
js/src/jit-test/tests/basic/testBug756918.js
Normal file
@ -0,0 +1,6 @@
|
||||
// |jit-test| error:Error
|
||||
|
||||
with({})
|
||||
let([] = []) {
|
||||
eval("throw new Error()");
|
||||
}
|
Loading…
Reference in New Issue
Block a user