Index: src/inspector/injected-script-source.js |
diff --git a/src/inspector/injected-script-source.js b/src/inspector/injected-script-source.js |
index 021b582bb69d1532f089daf5fc8d8c5b2b7802fa..044eb736c0243c24acc2e8ee9726a6a07febe297 100644 |
--- a/src/inspector/injected-script-source.js |
+++ b/src/inspector/injected-script-source.js |
@@ -936,9 +936,12 @@ InjectedScript.RemoteObject.prototype = { |
if (!descriptor.isOwn) |
continue; |
- // Ignore computed properties. |
- if (!("value" in descriptor)) |
+ // Ignore computed properties unless they have getters. |
+ if (!("value" in descriptor)) { |
+ if (descriptor.get) |
+ this._appendPropertyPreview(preview, { name: name, type: "accessor", __proto__: null }, propertiesThreshold); |
continue; |
+ } |
var value = descriptor.value; |
var type = typeof value; |