Debian Codegraph @

js/src/tests/test262/language/expressions/object/method-definition/generator-prop-name-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 /*---
5 description: >
6 Errors thrown during method definition are forwarded to the runtime.
7 es6id: 14.4.13
8 features: [generators]
9 ---*/
10
11 assert.throws(Test262Error, function() {
12 ({
13 *[(function() { throw new Test262Error(); }())]() {}
14 });
15 });
16
17 reportCompare(0, 0);