diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-01-30 23:13:45 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-02-03 20:40:16 +0100 |
commit | cca897ef5d92b20c7862fab00116ea0727439c10 (patch) | |
tree | ae68117e855fdd52a10f6eaf895954ad081e6d28 /test/sequential/test-inspector-break-e.js | |
parent | f72254037e27493274d0852035436f553f9bbebd (diff) | |
download | android-node-v8-cca897ef5d92b20c7862fab00116ea0727439c10.tar.gz android-node-v8-cca897ef5d92b20c7862fab00116ea0727439c10.tar.bz2 android-node-v8-cca897ef5d92b20c7862fab00116ea0727439c10.zip |
inspector,vm: remove --eval wrapper
Report the actual source code when running with `--eval` and
`--inspect-brk`, by telling the vm module to break on the
first line of the script being executed rather than wrapping
the source code in a function.
PR-URL: https://github.com/nodejs/node/pull/25832
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'test/sequential/test-inspector-break-e.js')
-rw-r--r-- | test/sequential/test-inspector-break-e.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-inspector-break-e.js b/test/sequential/test-inspector-break-e.js index 954ce6b897..6d4fbbb474 100644 --- a/test/sequential/test-inspector-break-e.js +++ b/test/sequential/test-inspector-break-e.js @@ -14,7 +14,7 @@ async function runTests() { { 'method': 'Debugger.enable' }, { 'method': 'Runtime.runIfWaitingForDebugger' } ]); - await session.waitForBreakOnLine(2, '[eval]'); + await session.waitForBreakOnLine(0, '[eval]'); await session.runToCompletion(); assert.strictEqual((await instance.expectShutdown()).exitCode, 0); } |