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

Unified Diff: runtime/vm/object.cc

Issue 12314055: Use browsers JSON.parse for parsing JSON (#3) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « runtime/vm/bootstrap.cc ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index b2dba5a4c7fcef7c894f80b7a774224e6e195f27..62f82e8f1adea49aa2d5533fc3fb667795b48008 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -1101,6 +1101,11 @@ RawError* Object::Init(Isolate* isolate) {
INIT_LIBRARY(Json,
Bootstrap::LoadJsonScript(false),
Library::JsonLibrary());
+ patch_script = Bootstrap::LoadJsonScript(true);
+ error = lib.Patch(patch_script);
+ if (!error.IsNull()) {
+ return error.raw();
+ }
INIT_LIBRARY(Utf,
Bootstrap::LoadUtfScript(false),
Library::UtfLibrary());
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698