Skip to content

fix(ext/node): validate boolean arg in process.setSourceMapsEnabled - #33473

Merged
bartlomieju merged 2 commits into
denoland:mainfrom
divybot:claude/test-process-setsourcemapsenabled
Apr 25, 2026
Merged

fix(ext/node): validate boolean arg in process.setSourceMapsEnabled#33473
bartlomieju merged 2 commits into
denoland:mainfrom
divybot:claude/test-process-setsourcemapsenabled

Conversation

@divybot

@divybot divybot commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Enables test-process-setsourcemapsenabled in node_compat suite.

Test plan

  • cargo test --test node_compat -- test-process-setsourcemapsenabled

divybot and others added 2 commits April 25, 2026 16:13
Enables tests/node_compat/runner/suite/test/parallel/test-process-setsourcemapsenabled.js
@bartlomieju
bartlomieju enabled auto-merge (squash) April 25, 2026 11:45

@fibibot fibibot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. validateBoolean (internal/validators.mjs:211) throws ERR_INVALID_ARG_TYPE on the unexpected-value set the upstream parallel/test-process-setsourcemapsenabled.js exercises (undefined, null, 1, {}, () => {}), so the test should land green. Renaming _val → val is required to use it; the comment-side behaviour ("no-op in Deno; source maps always enabled") is preserved. CI is rerunning with 0 failures.

@bartlomieju
bartlomieju merged commit 71dfc00 into denoland:main Apr 25, 2026
112 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants