docs: add asm type annotations across constants packages - #13915
Open
Planeshifter wants to merge 1 commit into
Open
docs: add asm type annotations across constants packages#13915Planeshifter wants to merge 1 commit into
constants packages#13915Planeshifter wants to merge 1 commit into
Conversation
Propagates fix from ab689bf ("docs: add asm type annotation") to sibling packages missing the conventional trailing comment on asm.js-style integer coercions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EPpEJXtCEJjRk6CrC8bZv9
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request:
developbetween 2026-08-03T17:46-07:00 and 2026-08-04T00:05-07:00 to sibling packages.Adds the
// asm type annotationtrailing comment to the six remaining coerced-integer constants that lacked it, bringing theconstantsnamespace to full coverage (77 of 77 non-eslint-disable-linesites). Purely mechanical: appends the existing convention established in ab689bf (#13905) to lines it missed on first pass; no coercion logic changes.constants/float16/abs-maskconstants/float16/num-exponent-bitsconstants/float16/num-significand-bitsconstants/float16/sign-maskconstants/float32/abs-maskconstants/float32/sign-maskRelated Issues
No.
Questions
No.
Other
Validation: candidate sites were enumerated by searching
lib/node_modules/@stdlib/constants/**/lib/*.jsfor bare|0/>>>0coercions (92 total coercion sites: 77 annotated, 9 carrying// eslint-disable-line id-length, 6 bare). Each of the six sites was independently confirmed by two validation passes, an adaptation pass (verbatim applicability, ESLintmax-len/id-lengthinteraction ruled out), and a style-consistency pass against the existing 77 annotated sites. Deliberately excluded: the nine sites whose trailing-comment slot is occupied by// eslint-disable-line id-length(identifiers longer than 25 characters), and uncoerced plain hex-literal constants (e.g.constants/float16/exponent-mask).Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by Claude Code as part of an automated fix-propagation routine: candidate sites were enumerated via search and validated by independent review passes before the changes were applied.
@stdlib-js/reviewers
🤖 Generated with Claude Code
https://claude.ai/code/session_01EPpEJXtCEJjRk6CrC8bZv9
Generated by Claude Code