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

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

Issue 1042003002: fix list literal initialization call fix typeof calls for primitive JS types add dart/collection.js… (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
Index: lib/runtime/dart/isolate.js
diff --git a/lib/runtime/dart/isolate.js b/lib/runtime/dart/isolate.js
index c265704d4b3b189fb7ec3fc4fce854f2e9701579..f152d2d514e967fea33a1c473f063231819e3e9b 100644
--- a/lib/runtime/dart/isolate.js
+++ b/lib/runtime/dart/isolate.js
@@ -44,7 +44,7 @@ var isolate;
try {
if (dart.is(args, core.List$(core.String))) {
for (let i = 0; dart.notNull(i) < dart.notNull(args.length); i = dart.notNull(i) + 1) {
- if (!(typeof args.get(i) == string)) {
+ if (!(typeof args.get(i) == 'string')) {
throw new core.ArgumentError(`Args must be a list of Strings ${args}`);
}
}
@@ -101,7 +101,7 @@ var isolate;
kill(priority) {
if (priority === void 0)
priority = Isolate.BEFORE_NEXT_EVENT;
- this.controlPort.send(new List.from(["kill", this.terminateCapability, priority]));
+ this.controlPort.send(new core.List.from(["kill", this.terminateCapability, priority]));
}
ping(responsePort, pingType) {
if (pingType === void 0)
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/math.js » ('j') | lib/runtime/dart_runtime.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698