Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/internal/repl/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,16 @@ class ReplInspectorChannel {
return response;
}

// Hold the promise open until it resolves or rejects,
// so we can return the final value.
// Hold the promise open until it resolves or rejects.
// Pass objectGroup so the promise remote object stays retained for the
// duration of the await and cannot be collected by a GC cycle between
// the two inspector calls.
return this.postInterruptible('Runtime.awaitPromise', {

This comment was marked as spam.

__proto__: null,
promiseObjectId: response.result.objectId,
returnByValue: params.returnByValue,
generatePreview: params.generatePreview,
objectGroup: this.objectGroup,
}, breakOnSigint);
}

Expand Down
Loading