Index: runtime/vm/object_service.cc |
diff --git a/runtime/vm/object_service.cc b/runtime/vm/object_service.cc |
index d4fc827ce49f6b8aafe568be9abe817517858b5f..e95e8e317524b4831fa70f703777c59b022783c7 100644 |
--- a/runtime/vm/object_service.cc |
+++ b/runtime/vm/object_service.cc |
@@ -408,8 +408,7 @@ void Field::PrintJSONImpl(JSONStream* stream, bool ref) const { |
} else { |
jsobj.AddProperty("_guardLength", guarded_list_length()); |
} |
- const Class& origin_cls = Class::Handle(Origin()); |
- const class Script& script = Script::Handle(origin_cls.script()); |
+ const class Script& script = Script::Handle(Script()); |
if (!script.IsNull()) { |
jsobj.AddLocation(script, token_pos()); |
} |