add breaking switch break test
This commit is contained in:
11
test/fixtures/transformation/es6-block-scoping/exec-switch-break/exec.js
vendored
Normal file
11
test/fixtures/transformation/es6-block-scoping/exec-switch-break/exec.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
if (true) {
|
||||
const x = 1;
|
||||
switch (x) {
|
||||
case 1: {
|
||||
function y() {
|
||||
assert(x, 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user