Debian Codegraph @

js/src/tests/test262/language/global-code/super-call.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-scripts-static-semantics-early-errors
6 es6id: 15.1.1
7 description: Global code may not contain SuperCall
8 info: |
9 - It is a Syntax Error if StatementList Contains super unless the source code
10 containing super is eval code that is being processed by a direct eval that
11 is contained in function code that is not the function code of an
12 ArrowFunction.
13 negative:
14 phase: parse
15 type: SyntaxError
16 features: [super]
17 ---*/
18
19 $DONOTEVALUATE();
20
21 super();