Skip to content

Commit 8382c27

Browse files
author
John Messerly
committed
Merge pull request #211 from ochafik/patch-1
Fix dart.equals("10", 10) (issue #210)
2 parents 321be0a + d159b6e commit 8382c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/dev_compiler/lib/runtime/dart_runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ var dart, dartx;
423423
function equals(x, y) {
424424
if (x == null || y == null) return x == y;
425425
let eq = x['=='];
426-
return eq ? eq.call(x, y) : x == y;
426+
return eq ? eq.call(x, y) : x === y;
427427
}
428428
dart.equals = equals;
429429

0 commit comments

Comments
 (0)