Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/prop-def-id-eval-error.js

raw
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 12.2.5.9
5 description: >
6 Errors thrown during IdentifierReference evaluation are forwarded to the
7 runtime.
8 flags: [noStrict]
9 features: [Symbol, Symbol.unscopables]
10 ---*/
11
12 var obj = {
13 attr: null,
14 get [Symbol.unscopables]() { throw new Test262Error(); }
15 };
16
17 assert.throws(Test262Error, function() {
18 with (obj) {
19 ({ attr });
20 }
21 });