Index: sdk/lib/_internal/compiler/js_lib/developer_patch.dart |
diff --git a/sdk/lib/_internal/compiler/js_lib/developer_patch.dart b/sdk/lib/_internal/compiler/js_lib/developer_patch.dart |
index 0e38bd55dafd302493790ac368341453f29e4795..a6087a1a1791ca544169b2944203ca03f288c8bc 100644 |
--- a/sdk/lib/_internal/compiler/js_lib/developer_patch.dart |
+++ b/sdk/lib/_internal/compiler/js_lib/developer_patch.dart |
@@ -23,3 +23,10 @@ bool debugger({bool when: true, String msg}) { |
} |
return when; |
} |
+ |
+/// Send a reference to [object] to any attached debuggers so they may open an |
+/// inspector on the object. Returns the argument. |
+@patch |
+inspect(object) { |
+ return object; |
+} |