From 333a2cda9315d3daa3f96e50d8a2d01aa594ef23 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Wed, 12 Aug 2020 11:19:34 -0500 Subject: [PATCH] enable replMode --- src/annotation_map.js | 4 +++- src/index.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/annotation_map.js b/src/annotation_map.js index 8377283..0dbfbfe 100644 --- a/src/annotation_map.js +++ b/src/annotation_map.js @@ -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":[]}], @@ -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":[]}], diff --git a/src/index.js b/src/index.js index 5f62b8d..4da43d8 100755 --- a/src/index.js +++ b/src/index.js @@ -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', });