Skip to content

Reject inherited Object members as primitive type names - #362

Open
Aschenbath wants to merge 1 commit into
keichi:masterfrom
Aschenbath:fix/oss30-20261124-9130-binary-primitive-names
Open

Aschenbath wants to merge 1 commit into
keichi:masterfrom
Aschenbath:fix/oss30-20261124-9130-binary-primitive-names

Conversation

@Aschenbath

Copy link
Copy Markdown
Contributor

Array, pointer, and choice validation currently accept names such as toString, constructor, and valueOf through the primitive registry prototype. Restrict primitive lookups to own properties, including endian normalization. Explicitly registered aliases with those names remain supported.

Validation: added regressions fail on unchanged master. Node suite: 266 passed; Chromium suite: 137 passed, 1 skipped. TypeScript build, full repository formatting check, and type-aware oxlint pass. Tested on Node 24 / Windows.

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.

1 participant