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

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

Issue 1348453004: fix some errors in our SDK, mostly around numbers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 3 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/_interceptors.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_isolate_helper.js
diff --git a/lib/runtime/dart/_isolate_helper.js b/lib/runtime/dart/_isolate_helper.js
index e677b60bc6db91c5790f20cea3336f92f8a61ed4..9755e0f478c98c7d1ae35aba92cead6c38741f21 100644
--- a/lib/runtime/dart/_isolate_helper.js
+++ b/lib/runtime/dart/_isolate_helper.js
@@ -81,7 +81,7 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
return ["ref", serializationId];
}
isPrimitive(x) {
- return x == null || typeof x == 'string' || dart.is(x, core.num) || typeof x == 'boolean';
+ return x == null || typeof x == 'string' || typeof x == 'number' || typeof x == 'boolean';
}
serializePrimitive(primitive) {
return primitive;
@@ -261,7 +261,7 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
}
}
isPrimitive(x) {
- return x == null || typeof x == 'string' || dart.is(x, core.num) || typeof x == 'boolean';
+ return x == null || typeof x == 'string' || typeof x == 'number' || typeof x == 'boolean';
}
deserializePrimitive(x) {
return x;
« no previous file with comments | « lib/runtime/dart/_interceptors.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698