Skip to content

Commit 75a1dc9

Browse files
committed
Fix identical equality
1 parent 7854c19 commit 75a1dc9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/js/base/runtime.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,7 @@ function (Namespace, jsnums, codePoint, util, exnStackParser, loader, seedrandom
24462446
return thisRuntime.ffi.unknown.app('Methods', v1, v2);
24472447
} else if (jsnums.isRoughnum(v1) && jsnums.isRoughnum(v2)) {
24482448
return thisRuntime.ffi.unknown.app('Roughnums', v1, v2);
2449-
} else if (v1 === v2) {
2449+
} else if (v1 === v2 || (jsnums.isPyretNumber(v1) && jsnums.isPyretNumber(v2) && jsnums.equals(v1, v2))) {
24502450
return thisRuntime.ffi.equal;
24512451
} else {
24522452
return thisRuntime.ffi.notEqual.app("", v1, v2);

t.arr

-1
This file was deleted.

0 commit comments

Comments
 (0)