Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index a5c680f13f4b2521adf9c6066d647c625dfd6997..5e792d9dad49b9202a37fea34a5bd67b6e78eb34 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()); |