Skip to content

Commit e927650

Browse files
Add test case
1 parent 764ce9c commit e927650

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

test/FlowGraph/for_of_try_catch.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
6+
function test0() {
7+
for(abcd of [])
8+
{
9+
try {
10+
} catch(e) {
11+
}
12+
try {
13+
} catch(e) {
14+
}
15+
}
16+
}
17+
18+
test0();
19+
test0();
20+
test0();
21+
22+
console.log("PASSED");

test/FlowGraph/rlexe.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,19 @@
99
<test>
1010
<default>
1111
<files>weird1.js</files>
12-
<compile-flags>-maxinterpretcount:1 -maxsimplejitruncount:1 -werexceptionsupport -oopjit- -off:bailonnoprofile -off:cachedScope</compile-flags>
12+
<compile-flags>-maxinterpretcount:1 -maxsimplejitruncount:1 -oopjit- -off:bailonnoprofile -off:cachedScope</compile-flags>
1313
</default>
1414
</test>
1515
<test>
1616
<default>
1717
<files>weird2.js</files>
18-
<compile-flags>-maxinterpretcount:1 -maxsimplejitruncount:1 -werexceptionsupport -bgjit- -loopinterpretcount:1 -oopjit- -off:simplejit -force:inline</compile-flags>
18+
<compile-flags>-maxinterpretcount:1 -maxsimplejitruncount:1 -bgjit- -loopinterpretcount:1 -oopjit- -off:simplejit -force:inline</compile-flags>
19+
</default>
20+
</test>
21+
<test>
22+
<default>
23+
<files>for_of_try_catch.js</files>
24+
<compile-flags>-maxinterpretcount:1 -maxsimplejitruncount:1 -bgjit- -oopjit- -off:jitloopbody</compile-flags>
1925
</default>
2026
</test>
2127
</regress-exe>

0 commit comments

Comments
 (0)