Fix missing inherited getters in enumeratePropertyCompletions #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-missing-autocompletions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Take this example:
When using
scopeCompletionSource(scope)as an extension, the autocompletion oftest.will listabut not the inherited getterfoo. This is because when callingobj[name]while iterating over the properties ofObject.getPrototypeOf(obj),thisrefers to the prototype and not the instance. Sothis.areturnsundefinedand thusthis.a.bthrows an error.Hopefully the issue becomes clear by just looking at the fix.
That makes sense. Thanks!