Skip to content

buffer: avoid fast API calls when computing UTF-8 byte length #62173

buffer: avoid fast API calls when computing UTF-8 byte length

buffer: avoid fast API calls when computing UTF-8 byte length #62173

Triggered via pull request October 30, 2026 07:22
@ronagronag
opened #67134
Status Failure
Total duration 32s
Artifacts –

commit-lint.yml

on: pull_request_target
lint-commit-message
29s
lint-commit-message
Fit to window
Zoom out
Zoom in

Annotations

1 error and 1 warning
lint-commit-message
# 7f67aa55f123dc6a6e50bd327969658ba27f58ac ok 1 assisted-by-is-trailer: Assisted-by is a trailer ok 2 co-authored-by-is-trailer: no Co-authored-by metadata ok 3 fixes-url: Valid fixes URL. [https://github.com/nodejs/node/issues/66870] ok 4 line-after-title: blank line after title not ok 5 line-length: Line should be <= 72 columns. --- { found: 73, compare: '<=', wanted: 72, at: { line: 5, column: 72, body: [ '', 'String flattening can allocate and invalidate the optimized caller during', 'a byteLengthUtf8 call. V8 cannot lazily deoptimize a value-returning fast', 'API call, including its slow fallback.', '', 'Register byteLengthUtf8 as a regular callback so both flat and non-flat', 'strings can be measured without the unsupported deoptimization. Keep the', 'existing SIMD path for large two-byte strings.', '', 'Add a GC regression and coverage for optimized calls with different string', 'representations.', '', 'Fixes: https://github.com/nodejs/node/issues/66870', 'Assisted-by: Codex', 'Signed-off-by: Robert Nagy <ronagy@icloud.com>' ] } } ... not ok 6 line-length: Line should be <= 72 columns. --- { found: 73, compare: '<=', wanted: 72, at: { line: 6, column: 72, body: [ '', 'String flattening can allocate and invalidate the optimized caller during', 'a byteLengthUtf8 call. V8 cannot lazily deoptimize a value-returning fast', 'API call, including its slow fallback.', '', 'Register byteLengthUtf8 as a regular callback so both flat and non-flat', 'strings can be measured without the unsupported deoptimization. Keep the', 'existing SIMD path for large two-byte strings.', '', 'Add a GC regression and coverage for optimized calls with different string', 'representations.', '', 'Fixes: https://github.com/nodejs/node/issues/66870', 'Assisted-by: Codex', 'Signed-off-by: Robert Nagy <ronagy@icloud.com>' ] } } ... not ok 7 line-length: Line should be <= 72 columns. --- { found: 74, compare: '<=', wanted: 72, at: { line: 13, column: 72, body: [ '', 'String flattening can allocate and invalidate the optimized caller during', 'a byteLengthUtf8 call. V8 cannot lazily deoptimize a value-returning fast', 'API call, including its slow fallback.', '', 'Register byteLengthUtf8 as a regular callback so both flat and non-flat', 'strings can be measured without the unsupported deoptimization. Keep the', 'existing SIMD path for large two-byte strings.', '', 'Add a GC regression and coverage for optimized calls with different string', 'representations.', '', 'Fixes: https://github.com/nodejs/node/issues/66870', 'Assisted-by: Codex', 'Signed-off-by: Robert Nagy <ronagy@icloud.com>' ] } } ... ok 8 signed-off-by: has valid Signed-off-by ok 9 subsystem: valid subsystems [buffer] ok 10 title-format: Title is formatted correctly. 0..10 # tests 10 # pass 7 # fail 3 # Please review the commit message guidelines: # https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines npm warn deprecated tap@16.3.10: Versions of tap before v18 are no longer maintained. Please upgrade. npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated glob@7.2.3: Glob versions prior to v
Workflow execution policy warning (evaluate mode): .github/workflows/commit-lint.yml#L1
On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target