Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
allow getters for handle 0; fixes microsoft/vscode#25555
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Apr 27, 2017
1 parent 362e0da commit a0f6664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/nodeDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2689,7 +2689,7 @@ export class NodeDebugSession extends LoggingDebugSession {
}

// if value 'undefined' trigger a getter
if (this._node.v8Version && val.type === 'undefined' && !val.value && obj && obj.handle > 0) {
if (this._node.v8Version && val.type === 'undefined' && !val.value && obj && obj.handle >= 0) {

const args = {
expression: `obj['${name}']`, // trigger call to getter
Expand Down

0 comments on commit a0f6664

Please sign in to comment.