Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
test_runner: add __proto__: null to extraOverrides object literal
Node.js core lint rule (node-core/set-proto-to-null-in-object)
requires every object literal in lib/ to have __proto__: null
to prevent prototype pollution.
  • Loading branch information
Felipeness committed Mar 8, 2026
commit 981cf8d3bd4b4f7a92dd7d3d039aa55a5207315a
1 change: 1 addition & 0 deletions lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ class TestContext {
(keyword) => {
this.test[keyword] = (name, options, fn) =>
runSubtest(name, options, fn, getCallerLocation(), {
__proto__: null,
[keyword]: true,
});
},
Expand Down