Skip to content

Commit

Permalink
Merge pull request #211 from ochafik/patch-1
Browse files Browse the repository at this point in the history
Fix dart.equals("10", 10) (issue #210)
  • Loading branch information
John Messerly committed Jun 10, 2015
2 parents 321be0a + d159b6e commit 8382c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dev_compiler/lib/runtime/dart_runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ var dart, dartx;
function equals(x, y) {
if (x == null || y == null) return x == y;
let eq = x['=='];
return eq ? eq.call(x, y) : x == y;
return eq ? eq.call(x, y) : x === y;
}
dart.equals = equals;

Expand Down

0 comments on commit 8382c27

Please sign in to comment.