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

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

Issue 1579223002: Fixes #408 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: 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
Index: lib/runtime/dart/convert.js
diff --git a/lib/runtime/dart/convert.js b/lib/runtime/dart/convert.js
index 3d4fc9140b7b50b29d43fdaf0a18cd1cdeff8146..9dfc0715261733a7207b0f7ceff26bd40921901b 100644
--- a/lib/runtime/dart/convert.js
+++ b/lib/runtime/dart/convert.js
@@ -1050,7 +1050,7 @@ dart_library.library('dart/convert', null, /* Imports */[
if (!(typeof source == 'string')) dart.throw(new core.ArgumentError(source));
let parsed = null;
try {
- parsed = JSON.parse(source);
+ parsed = dart.global.JSON.parse(source);
} catch (e) {
dart.throw(new core.FormatException(String(e)));
}

Powered by Google App Engine
This is Rietveld 408576698