Debian Codegraph @

js/src/tests/test262/language/module-code/early-new-target.js

raw
1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2015 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es6id: 15.2.1.1
6 description: >
7 It is a Syntax Error if ModuleItemList Contains NewTarget
8 flags: [module]
9 negative:
10 phase: parse
11 type: SyntaxError
12 features: [new.target]
13 ---*/
14
15 $DONOTEVALUATE();
16
17 new.target;