Index: runtime/vm/isolate.cc |
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc |
index 3bcc3060fb193bf506ab3b5a924f048fe68a4452..c090162049cddf54853a78c16fa3155928c0bb47 100644 |
--- a/runtime/vm/isolate.cc |
+++ b/runtime/vm/isolate.cc |
@@ -968,6 +968,19 @@ void Isolate::PrintJSON(JSONStream* stream, bool ref) { |
typeargsRef.AddProperty("id", "typearguments"); |
typeargsRef.AddProperty("name", "canonical type arguments"); |
} |
+ { |
+ const GrowableObjectArray& libs = |
+ GrowableObjectArray::Handle(object_store()->libraries()); |
+ intptr_t num_libs = libs.Length(); |
+ Library &lib = Library::Handle(); |
+ |
+ JSONArray lib_array(&jsobj, "libraries"); |
+ for (intptr_t i = 0; i < num_libs; i++) { |
+ lib ^= libs.At(i); |
+ ASSERT(!lib.IsNull()); |
+ lib_array.AddValue(lib); |
+ } |
+ } |
} |