blob: ad04ba0ba79cf2972a98927c5eac2cbfe6e6c6b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-labelled-statements-runtime-semantics-labelledevaluation
es6id: 13.13.14
description: Completion value when LabelledItem returns normally
info: |
LabelledStatement : LabelIdentifier : LabelledItem
1. Let label be the StringValue of LabelIdentifier.
2. Append label as an element of labelSet.
3. Let stmtResult be LabelledEvaluation of LabelledItem with argument
labelSet.
4. If stmtResult.[[Type]] is break and SameValue(stmtResult.[[Target]],
label) is true, then
[...]
5. Return Completion(stmtResult).
---*/
assert.sameValue(eval('test262id: 2;'), 2);
reportCompare(0, 0);
|