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

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

Issue 1121993004: Inference through conditional expressions (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase 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 | « lib/runtime/dart/convert.js ('k') | lib/src/checker/rules.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 e8c8188aaa00902abd2145323839cb485bd367ff..abb8bcb683c39aab879b84feb97c7c0d5e643c96 100644
--- a/lib/runtime/dart/core.js
+++ b/lib/runtime/dart/core.js
@@ -732,7 +732,7 @@ var core;
if (length === void 0)
length = null;
this.indexable = indexable;
- this.length = dart.as(length != null ? length : dart.dload(indexable, 'length'), int);
+ this.length = length != null ? length : dart.as(dart.dload(indexable, 'length'), int);
super.value(invalidValue, name, message != null ? message : "Index out of range");
}
get start() {
@@ -1030,7 +1030,7 @@ var core;
}
get(object) {
let values = _js_helper.Primitives.getProperty(object, Expando._EXPANDO_PROPERTY_NAME);
- return dart.as(values == null ? null : _js_helper.Primitives.getProperty(values, this[_getKey]()), T);
+ return values == null ? null : dart.as(_js_helper.Primitives.getProperty(values, this[_getKey]()), T);
}
set(object, value) {
dart.as(value, T);
@@ -2353,7 +2353,7 @@ var core;
file(path, opts) {
let windows = opts && 'windows' in opts ? opts.windows : null;
windows = windows == null ? Uri._isWindows : windows;
- return dart.as(windows ? Uri._makeWindowsFileUrl(path) : Uri._makeFileUri(path), Uri);
+ return windows ? dart.as(Uri._makeWindowsFileUrl(path), Uri) : dart.as(Uri._makeFileUri(path), Uri);
}
static get base() {
let uri = _js_helper.Primitives.currentUri();
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/src/checker/rules.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698