Browse Source

Use `includeCommandLineAPI` for Node evaluation

Fixes #192
drone
Nicolas Petton 3 years ago
parent
commit
f8cb9cbe3c
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      server/adapters/cdp/index.js

+ 4
- 2
server/adapters/cdp/index.js View File

@ -78,8 +78,9 @@ const evaluate = async ({expression, frameId}) => {
: state.client.Runtime.evaluate;
let response = await method({
generatePreview: true,
expression,
callFrameId: frameId || state.currentCallFrameId
includeCommandLineAPI: true,
callFrameId: frameId || state.currentCallFrameId,
expression
});
return convertRemoteObject(response.result);
@ -110,6 +111,7 @@ const getCompletion = async ({expression, frameId}) => {
let response = await method({
expression,
objectGroup: "completion",
includeCommandLineAPI: true,
callFrameId: frameId || state.currentCallFrameId
});


Loading…
Cancel
Save