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

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

Issue 1641643004: Roll analyzer to 0.27.2-alpha.1 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rerun tests and format Created 4 years, 11 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/collection.js ('k') | lib/runtime/dart/html.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/convert.js
diff --git a/lib/runtime/dart/convert.js b/lib/runtime/dart/convert.js
index 3ed84c4873da7dd9d1a43c2005ae79cf31f4f542..72d463860f44dc5e23382a8a971f7b91b65e69aa 100644
--- a/lib/runtime/dart/convert.js
+++ b/lib/runtime/dart/convert.js
@@ -1173,8 +1173,8 @@ dart_library.library('dart/convert', null, /* Imports */[
}
writeJsonValue(object) {
if (typeof object == 'number') {
- if (!dart.notNull(dart.as(dart.dload(object, 'isFinite'), core.bool))) return false;
- this.writeNumber(dart.as(object, core.num));
+ if (!dart.notNull(object[dartx.isFinite])) return false;
+ this.writeNumber(object);
return true;
} else if (dart.notNull(core.identical(object, true))) {
this.writeString('true');
@@ -1187,12 +1187,12 @@ dart_library.library('dart/convert', null, /* Imports */[
return true;
} else if (typeof object == 'string') {
this.writeString('"');
- this.writeStringContent(dart.as(object, core.String));
+ this.writeStringContent(object);
this.writeString('"');
return true;
} else if (dart.is(object, core.List)) {
this[_checkCycle](object);
- this.writeList(dart.as(object, core.List));
+ this.writeList(object);
this[_removeSeen](object);
return true;
} else if (dart.is(object, core.Map)) {
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/html.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698