Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/method-definition/generator-super-call-param.js

raw
1 // Copyright 2015 Cubane Canada, Inc. All rights reserved.
2 // See LICENSE for details.
3
4 /*---
5 info: |
6 GeneratorMethod early SyntaxError when super is called
7 directly inside generator args
8 features: [generators]
9 es6id: 14.4.1
10 author: Sam Mikes
11 description: GeneratorMethod error if HasDirectSuper in args
12 negative:
13 phase: parse
14 type: SyntaxError
15 ---*/
16
17 throw "Test262: This statement should not be evaluated.";
18
19 var obj = {
20 *foo(a = super()) {
21 }
22 };