Bug 756918 - Fix aliased, empty destructuring let (r=waldo)

This commit is contained in:
Luke Wagner 2012-05-25 11:44:38 +02:00
parent b57ae8645e
commit 465fca02c3
2 changed files with 7 additions and 0 deletions

View File

@ -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;
}

View File

@ -0,0 +1,6 @@
// |jit-test| error:Error
with({})
let([] = []) {
eval("throw new Error()");
}