Skip to content

Commit c809750

Browse files
author
Meghana Gupta
committed
Add test
1 parent 3c2da6d commit c809750

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

test/Bugs/rlexe.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,4 +467,9 @@
467467
<compile-flags>-off:ArrayMissingValueCheckHoist</compile-flags>
468468
</default>
469469
</test>
470+
<test>
471+
<default>
472+
<files>symcmpbug.js</files>
473+
</default>
474+
</test>
470475
</regress-exe>

test/Bugs/symcmpbug.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 symcmp(c1, c2) {
7+
return (c1 !== c2);
8+
}
9+
10+
var s = Symbol();
11+
symcmp(s, s);
12+
symcmp(s, s);
13+
symcmp(1, 2);
14+
print("Passed");

0 commit comments

Comments
 (0)