summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/LexicalEnvironment/unscopables-tdz.js
blob: ce6b1df929eb72efdfaa2680a9d50764716355e4 (plain)
1
2
3
4
5
6
7
8
9
// Accessing an uninitialized variable due to @@unscopables is still a ReferenceError.

with ({x: 1, [Symbol.unscopables]: {x: true}})
    assertThrowsInstanceOf(() => x, ReferenceError);

let x;

reportCompare(0, 0);