Closed olejorgenb closed 6 years ago
Seems to need special handling. (Array works though)
Array
String.prototype. and Object.prototype. completes using the normal code so there is a simple fix. Functions seems to be harder.
String.prototype.
Object.prototype.
Function
Ideally the fix should be moved upstream to gnome-shell / jsParse.
jsParse
Might fix itself when/if gjs is updated also?
Frefox's devtools completion code: https://dxr.mozilla.org/mozilla-central/source/devtools/shared/webconsole/js-property-provider.js (getMatchedProps)
The issue is that Object etc. are functions (doh) and is excluded by the typeof(obj) === "object check.
Object
typeof(obj) === "object
Seems to need special handling. (
Array
works though)String.prototype.
andObject.prototype.
completes using the normal code so there is a simple fix.Function
s seems to be harder.Ideally the fix should be moved upstream to gnome-shell /
jsParse
.Might fix itself when/if gjs is updated also?
Frefox's devtools completion code: https://dxr.mozilla.org/mozilla-central/source/devtools/shared/webconsole/js-property-provider.js (getMatchedProps)