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-async-stack-traces-set-interval.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-async-stack-traces-set-interval.js')
-rw-r--r-- | test/sequential/test-inspector-async-stack-traces-set-interval.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sequential/test-inspector-async-stack-traces-set-interval.js b/test/sequential/test-inspector-async-stack-traces-set-interval.js index 240074f631..451cc14b1c 100644 --- a/test/sequential/test-inspector-async-stack-traces-set-interval.js +++ b/test/sequential/test-inspector-async-stack-traces-set-interval.js @@ -10,13 +10,13 @@ const script = 'setInterval(() => { debugger; }, 50);'; async function skipFirstBreakpoint(session) { console.log('[test]', 'Skipping the first breakpoint in the eval script'); - await session.waitForBreakOnLine(2, '[eval]'); + await session.waitForBreakOnLine(0, '[eval]'); await session.send({ 'method': 'Debugger.resume' }); } async function checkAsyncStackTrace(session) { console.error('[test]', 'Verify basic properties of asyncStackTrace'); - const paused = await session.waitForBreakOnLine(2, '[eval]'); + const paused = await session.waitForBreakOnLine(0, '[eval]'); assert(paused.params.asyncStackTrace, `${Object.keys(paused.params)} contains "asyncStackTrace" property`); assert(paused.params.asyncStackTrace.description, 'Timeout'); |