Skip to content

Commit cc811b1

Browse files
committed
Add test
1 parent 5a30d13 commit cc811b1

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

test/bailout/bug17449647.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
var strvar1 = "";
7+
function foo() {
8+
switch (strvar1) {
9+
case 1:
10+
this();
11+
case "":
12+
}
13+
}
14+
for (let i = 0; i < 1000; ++i) {
15+
foo();
16+
}
17+
console.log("pass");

test/bailout/rlexe.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,9 @@
269269
<files>bug13674598.js</files>
270270
</default>
271271
</test>
272+
<test>
273+
<default>
274+
<files>bug17449647.js</files>
275+
</default>
276+
</test>
272277
</regress-exe>

0 commit comments

Comments
 (0)