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

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

Issue 1752193002: Add a few more known non-null cases (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 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/_debugger.js ('k') | 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/_internal.js
diff --git a/lib/runtime/dart/_internal.js b/lib/runtime/dart/_internal.js
index b17de52909d4eef03f05b77caafa71f43af26445..5fdcdb902b53451ccdd8742f4fa534e4cb4f8f7d 100644
--- a/lib/runtime/dart/_internal.js
+++ b/lib/runtime/dart/_internal.js
@@ -144,7 +144,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.throw(new core.ConcurrentModificationError(this));
}
}
- return dart.toString(buffer);
+ return buffer.toString();
} else {
let buffer = new core.StringBuffer();
for (let i = 0; i < dart.notNull(length); i++) {
@@ -153,7 +153,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
dart.throw(new core.ConcurrentModificationError(this));
}
}
- return dart.toString(buffer);
+ return buffer.toString();
}
}
where(test) {
@@ -1229,7 +1229,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
if (separator === void 0) separator = null;
let buffer = new core.StringBuffer();
buffer.writeAll(iterable, separator);
- return dart.toString(buffer);
+ return buffer.toString();
}
static joinList(list, separator) {
if (separator === void 0) separator = null;
@@ -1247,7 +1247,7 @@ dart_library.library('dart/_internal', null, /* Imports */[
buffer.write(list[dartx.get](i));
}
}
- return dart.toString(buffer);
+ return buffer.toString();
}
where(iterable, f) {
dart.as(iterable, core.Iterable$(T));
@@ -1929,12 +1929,12 @@ dart_library.library('dart/_internal', null, /* Imports */[
}
}
static areEqual(a, b) {
- if (dart.notNull(core.identical(a, b))) return true;
+ if (core.identical(a, b)) return true;
if (!dart.is(b, core.List)) return false;
let length = a[dartx.length];
if (!dart.equals(length, dart.dload(b, 'length'))) return false;
for (let i = 0; i < dart.notNull(length); i++) {
- if (!dart.notNull(core.identical(a[dartx.get](i), dart.dindex(b, i)))) return false;
+ if (!core.identical(a[dartx.get](i), dart.dindex(b, i))) return false;
}
return true;
}
« no previous file with comments | « lib/runtime/dart/_debugger.js ('k') | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698