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

Unified Diff: lib/runtime/dart/math.js

Issue 1775673002: Fix deprecation message (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 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
« no previous file with comments | « lib/runtime/dart/html.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/math.js
diff --git a/lib/runtime/dart/math.js b/lib/runtime/dart/math.js
index 948ca4d4ea565666ad0b5005aab1542730074d70..782599615ddf2f96011ff3245ded43534bd5a403 100644
--- a/lib/runtime/dart/math.js
+++ b/lib/runtime/dart/math.js
@@ -43,7 +43,7 @@ dart_library.library('dart/math', null, /* Imports */[
return `Point(${this.x}, ${this.y})`;
}
['=='](other) {
- if (!dart.is(other, Point$())) return false;
+ if (!dart.is(other, Point$(core.num))) return false;
Jennifer Messerly 2016/03/08 00:21:31 Hmm, so we now convert `other is Point` to `other
return dart.equals(this.x, dart.dload(other, 'x')) && dart.equals(this.y, dart.dload(other, 'y'));
}
get hashCode() {
« no previous file with comments | « lib/runtime/dart/html.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698