blob: dc08215409a4aa3c2f7746bc0d18823fd0ff2c03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// |reftest| error:SyntaxError
// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-static-semantics-containsundefinedcontinuetarget
description: Clears label set in check for undefined `continue` target
info: |
With arguments iterationSet and labelSet.
Statement : BlockStatement
1. Return ContainsUndefinedContinueTarget of |BlockStatement| with arguments
_iterationSet_ and « ».
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
label: {
for ( ;; ) {
continue label;
}
}
|