Skip to content

Commit bf2afe5

Browse files
committed
update tests after disallowing using and await using in switch cases
1 parent 27622d7 commit bf2afe5

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

test/staging/explicit-resource-management/await-using-in-switch-case-block.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

test/staging/explicit-resource-management/call-dispose-methods.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,6 @@ let blockValues = [];
2323
})();
2424
assert.compareArray(blockValues, [43, 42]);
2525

26-
// CaseBlock --------------
27-
let caseBlockValues = [];
28-
29-
(function TestUsingInCaseBlock() {
30-
let label = 1;
31-
switch (label) {
32-
case 1:
33-
using x = {
34-
value: 1,
35-
[Symbol.dispose]() {
36-
caseBlockValues.push(42);
37-
}
38-
};
39-
}
40-
caseBlockValues.push(43);
41-
})();
42-
assert.compareArray(caseBlockValues, [42, 43]);
43-
4426
// ForStatement --------------
4527
let forStatementValues = [];
4628

0 commit comments

Comments
 (0)