Skip to content

Commit

Permalink
enable replMode
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Aug 12, 2020
1 parent 8554cac commit 333a2cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/annotation_map.js
Expand Up @@ -693,6 +693,8 @@ module.exports = new WeakMap([
[async_hooks?.AsyncResource?.prototype?.emitDestroy, {"call":[],"construct":[]}],
[async_hooks?.AsyncResource?.prototype?.asyncId, {"call":[],"construct":[]}],
[async_hooks?.AsyncResource?.prototype?.triggerAsyncId, {"call":[],"construct":[]}],
[async_hooks?.AsyncResource?.prototype?.bind, {"call":[],"construct":[]}],
[async_hooks?.AsyncResource?.bind, {"call":[["thisArg"],["thisArg","arg0"],["thisArg","...args"],["thisArg","arg0","arg1"],["thisArg","arg0","arg1","arg2"],["thisArg","arg0","arg1","arg2","arg3"]],"construct":[]}],
[buffer?.SlowBuffer, {"call":[],"construct":[["size"]]}],
[buffer?.transcode, {"call":[["source","fromEnc","toEnc"]],"construct":[]}],
[child_process?.ChildProcess, {"call":[],"construct":[]}],
Expand Down Expand Up @@ -1046,7 +1048,7 @@ module.exports = new WeakMap([
[http?.Agent?.prototype?.keepSocketAlive, {"call":[],"construct":[]}],
[http?.Agent?.prototype?.reuseSocket, {"call":[],"construct":[]}],
[http?.Agent?.prototype?.destroy, {"call":[],"construct":[]}],
[http?.ClientRequest, {"call":[],"construct":[["url","?cb"]]}],
[http?.ClientRequest, {"call":[],"construct":[]}],
[http?.ClientRequest?.prototype?.abort, {"call":[],"construct":[]}],
[http?.ClientRequest?.prototype?.destroy, {"call":[],"construct":[]}],
[http?.ClientRequest?.prototype?.onSocket, {"call":[],"construct":[]}],
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Expand Up @@ -37,6 +37,7 @@ async function start(wsUrl) {
return session.post('Runtime.evaluate', {
expression: wrapped,
throwOnSideEffect,
replMode: true,
timeout: throwOnSideEffect ? 200 : undefined,
objectGroup: 'OBJECT_GROUP',
});
Expand Down

0 comments on commit 333a2cd

Please sign in to comment.