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

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

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 8 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/_internal.js » ('j') | tool/input_sdk/lib/core/list.dart » ('J')
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 ca2bb15fb2d950520c37a55401db8912a4b67c22..7dc5e93380b38515b2a9122d191d5be0bac70ee4 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -140,13 +140,13 @@ var _interceptors;
throw new core.ArgumentError(lowerLimit);
if (!dart.is(upperLimit, core.num))
throw new core.ArgumentError(upperLimit);
- if (dart.dsend(dart.dsend(lowerLimit, 'compareTo', upperLimit), '>', 0)) {
+ if (dart.notNull(lowerLimit.compareTo(upperLimit)) > 0) {
throw new core.ArgumentError(lowerLimit);
}
- if (dart.notNull(this.compareTo(dart.as(lowerLimit, core.num))) < 0)
- return dart.as(lowerLimit, core.num);
- if (dart.notNull(this.compareTo(dart.as(upperLimit, core.num))) > 0)
- return dart.as(upperLimit, core.num);
+ if (dart.notNull(this.compareTo(lowerLimit)) < 0)
+ return lowerLimit;
+ if (dart.notNull(this.compareTo(upperLimit)) > 0)
+ return upperLimit;
return this;
}
toDouble() {
« no previous file with comments | « no previous file | lib/runtime/dart/_internal.js » ('j') | tool/input_sdk/lib/core/list.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698