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

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

Issue 1173023004: fixes #217, Object members on extension types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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/convert.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/core.js
diff --git a/lib/runtime/dart/core.js b/lib/runtime/dart/core.js
index 9893f751f5ff25aa34264d982448e2fe308217a3..baee9708176073cd53205e6aa6a062c92983da0e 100644
--- a/lib/runtime/dart/core.js
+++ b/lib/runtime/dart/core.js
@@ -76,7 +76,7 @@ dart.library('dart/core', null, /* Imports */[
let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : false;
throw new UnsupportedError('bool.fromEnvironment can only be used as a const constructor');
}
- [dartx.toString]() {
+ toString() {
return this ? "true" : "false";
}
}
@@ -520,7 +520,7 @@ dart.library('dart/core', null, /* Imports */[
return dart.equals(this[_duration], dart.dload(other, _duration));
}
get hashCode() {
- return dart[dartx.hashCode](this[_duration]);
+ return dart.hashCode(this[_duration]);
}
compareTo(other) {
return this[_duration][dartx.compareTo](other[_duration]);
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698