Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: lib/runtime/dart_runtime.js

Issue 1047023002: use == and != to enable handling null/undefined (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/runtime/dart_runtime.js
diff --git a/lib/runtime/dart_runtime.js b/lib/runtime/dart_runtime.js
index fce2a35f9f39fdf68d3c551c75314e4e2735b10a..9e1e358331e9b4f6eb4e5e4eadcf1493243a7ce4 100644
--- a/lib/runtime/dart_runtime.js
+++ b/lib/runtime/dart_runtime.js
@@ -128,9 +128,9 @@ var dart, _js_helper;
dart.arity = arity;
function equals(x, y) {
- if (x === null || y === null) return x === y;
+ if (x == null || y == null) return x == y;
var eq = x['=='];
- return eq ? eq.call(x, y) : x === y;
+ return eq ? eq.call(x, y) : x == y;
}
dart.equals = equals;

Powered by Google App Engine
This is Rietveld 408576698