Skip to content

Conversation

@antongolub
Copy link
Collaborator

  • Tests pass
  • Appropriate changes to README are included in PR

@antongolub antongolub requested a review from Copilot July 27, 2025 11:17
@antongolub antongolub added the bug label Jul 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the kill() method to properly handle the killSignal value from the snapshot configuration. Previously, the method was not using the signal configured in the process options when no explicit signal was provided.

  • Updates the kill() method signature to make the signal parameter optional
  • Implements fallback logic to use _snapshot.killSignal when no signal is provided
  • Adds comprehensive test coverage for the new behavior

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
src/core.ts Updated kill() method to use snapshot killSignal as fallback
build/core.cjs Compiled output reflecting the TypeScript changes
test/core.test.js Added test for killSignal fallback behavior and improved existing test name
.size-limit.json Updated size limits to accommodate the minor code changes
Comments suppressed due to low confidence (1)

test/core.test.js:1031

  • The variable name 'p' shadows the process variable declared on line 1026. Consider using a more descriptive name like 'error' or 'err' to avoid confusion.
        } catch (p) {

@antongolub antongolub merged commit 5e4b543 into google:main Jul 27, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant