Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ src/**/*.js.map
tests/**/*.js
tests/**/*.d.ts
tests/**/*.js.map
# Exception: hand-written JS debuggee fixtures (not TS output) — without this
# negation, `git add` silently skips new fixtures (how PR #252 lost one)
!tests/fixtures/debug-scripts/*.js

# Package source compilation artifacts
packages/*/src/**/*.js
Expand Down
8 changes: 8 additions & 0 deletions tests/fixtures/debug-scripts/js-clean-exit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Clean-exit fixture (issue #247): does a little work and exits with code 0.
// Mirrors js-throws.js's shape (work in a timer callback) so the js-debug
// child session has time to adopt the process before it finishes.
function done() {
console.log('clean exit fixture done'); // Line 5
}

setTimeout(done, 100); // Line 8 — node exits 0 once the timer fires
Loading