Debian Codegraph @

js/src/tests/test262/language/module-code/early-undef-break.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 ContainsUndefinedBreakTarget of ModuleItemList with
8 argument « » is true.
9 flags: [module]
10 negative:
11 phase: parse
12 type: SyntaxError
13 ---*/
14
15 $DONOTEVALUATE();
16
17 while (false) {
18 break undef;
19 }