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

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

Issue 1131143002: Angular workarounds (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase onto latest Created 5 years, 7 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 | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_interceptors.js
diff --git a/lib/runtime/dart/_interceptors.js b/lib/runtime/dart/_interceptors.js
index b84f2db51873df77894eaf53a358fad780b3f067..21a1f35531e362c6d4c5cca3a3cf1ab60a82d9c1 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -84,7 +84,7 @@ var _js_embedded_names = dart.import(_js_embedded_names);
}
}
get isNegative() {
- return dart.equals(this, 0) ? core.int['/'](1, this) < 0 : this['<'](0);
+ return dart.equals(this, 0) ? (1)['/'](this) < 0 : this['<'](0);
}
get isNaN() {
return isNaN(this);
@@ -220,7 +220,7 @@ var _js_embedded_names = dart.import(_js_embedded_names);
result = result + dart.dindex(match, 2);
exponent = dart.notNull(exponent) - dart.dindex(match, 2).length;
}
- return dart.notNull(result) + core.String['*']("0", exponent);
+ return dart.notNull(result) + "0"['*'](exponent);
}
toString() {
if (dart.notNull(dart.equals(this, 0)) && 1 / this < 0) {
@@ -388,8 +388,8 @@ var _js_embedded_names = dart.import(_js_embedded_names);
}
static _bitCount(i) {
i = dart.as(dart.dsend(JSInt._shru(i, 0), '-', dart.dsend(JSInt._shru(i, 1), '&', 1431655765)), core.int);
- i = core.int['+'](dart.notNull(i) & 858993459, dart.dsend(JSInt._shru(i, 2), '&', 858993459));
- i = 252645135 & core.int['+'](i, JSInt._shru(i, 4));
+ i = (dart.notNull(i) & 858993459)['+'](dart.dsend(JSInt._shru(i, 2), '&', 858993459));
+ i = 252645135 & i['+'](JSInt._shru(i, 4));
i = dart.notNull(i) + dart.notNull(dart.as(JSInt._shru(i, 8), core.int));
i = dart.notNull(i) + dart.notNull(dart.as(JSInt._shru(i, 16), core.int));
return dart.notNull(i) & 63;
@@ -742,7 +742,7 @@ var _js_embedded_names = dart.import(_js_embedded_names);
let delta = dart.notNull(width) - dart.notNull(this.length);
if (dart.notNull(delta) <= 0)
return this;
- return core.String['*'](padding, delta) + this;
+ return padding['*'](delta) + this;
}
padRight(width, padding) {
if (padding === void 0)
@@ -750,7 +750,7 @@ var _js_embedded_names = dart.import(_js_embedded_names);
let delta = dart.notNull(width) - dart.notNull(this.length);
if (dart.notNull(delta) <= 0)
return this;
- return this['+'](core.String['*'](padding, delta));
+ return this['+'](padding['*'](delta));
}
get codeUnits() {
return new _CodeUnits(this);
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698