Skip to content

Commit 0ecb3f5

Browse files
authored
test(es/parser): Add a test for duplicate labels (#10784)
1 parent 60fa835 commit 0ecb3f5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
a: {
2+
a: {
3+
break a;
4+
}
5+
break a;
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
x Label a is already declared
2+
,-[$DIR/tests/errors/duplicate_label/input.js:2:1]
3+
1 | a: {
4+
2 | a: {
5+
: ^
6+
3 | break a;
7+
`----

0 commit comments

Comments
 (0)