forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathduplicateStringCaseArmBug.js
More file actions
33 lines (27 loc) · 903 Bytes
/
duplicateStringCaseArmBug.js
File metadata and controls
33 lines (27 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
//-maxinterpretcount:1 D:\fbl_ie_script_dev\testFiles\bug8.js -loopinterpretcount:1 -bgjit- -MaxLinearStringCaseCount:2
function test0(){
var b = 5;
var __loopvar1 = 3;
for(; __loopvar1 < 4; __loopvar1++) {
switch('m') {
case 'n':
break;
case 'a':
break;
case 'n':
WScript.Echo("m");
b|2;
break;
default:
break;
}
}
};
// generate profile
test0();
test0();
WScript.Echo("PASSED");