Skip to content

Commit b0fa060

Browse files
committed
Bug 1814899: Add testcase r=jandem
Depends on D169274 Differential Revision: https://phabricator.services.mozilla.com/D169275 UltraBlame original commit: 0e73c493db8f0194bb693259468516934fa46c20
1 parent 7b3eefe commit b0fa060

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
function bar(x) {
2+
with ({}) {}
3+
switch (x) {
4+
case 1:
5+
foo(2);
6+
break;
7+
case 2:
8+
gczeal(14, 1);
9+
break;
10+
}
11+
return "a sufficiently long string";
12+
}
13+
14+
function foo(x) {
15+
for (var s in bar(x)) { gczeal(0); }
16+
}
17+
18+
with ({}) {}
19+
for (var i = 0; i < 100; i++) {
20+
foo(0);
21+
}
22+
foo(1);

0 commit comments

Comments
 (0)