summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/LexicalEnvironment/unscopables-miss.js
blob: b86d510787d8e9991846bbec44b90a7ac595f6c3 (plain)
1
2
3
4
5
6
7
// Trying to access a binding that doesn't exist due to @@unscopables
// is a ReferenceError.

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

reportCompare(0, 0);