Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/method-definition/name-super-call-param.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 It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
7 es6id: 12.2.5.1
8 negative:
9 phase: parse
10 type: SyntaxError
11 ---*/
12
13 throw "Test262: This statement should not be evaluated.";
14
15 ({
16 method(param = super) {}
17 });