mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
693 B
TypeScript
33 lines
693 B
TypeScript
//// [tests/cases/compiler/doubleUnderscoreLabels.ts] ////
|
|
|
|
//// [doubleUnderscoreLabels.ts]
|
|
function doThing() {
|
|
__call: while (true) {
|
|
aLabel: for (let i = 0; i < 10; i++) {
|
|
if (i === 3) {
|
|
break __call;
|
|
}
|
|
if (i === 5) {
|
|
break aLabel;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
doThing();
|
|
|
|
//// [doubleUnderscoreLabels.js]
|
|
"use strict";
|
|
function doThing() {
|
|
__call: while (true) {
|
|
aLabel: for (let i = 0; i < 10; i++) {
|
|
if (i === 3) {
|
|
break __call;
|
|
}
|
|
if (i === 5) {
|
|
break aLabel;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
doThing();
|