Skip to content

fix(aot): recognize native CustomValue table entries - #985

Closed
vincentkoc wants to merge 1 commit into
oven-sh:mainfrom
openclaw:claude/fix-aot-customvalue-20261102
Closed

vincentkoc wants to merge 1 commit into
oven-sh:mainfrom
openclaw:claude/fix-aot-customvalue-20261102

Conversation

@vincentkoc

Copy link
Copy Markdown

fix(aot): recognize native CustomValue table entries

Associated regression and test: oven-sh/bun#47697

The static-table collector rejects CustomValue as an unknown attribute and drops its entries. Recognize it as a DataProperty whose value is the native getter. The existing getter-column handling then retains getter/setter symbols for writable entries and omits the setter for ReadOnly entries. Unknown attributes still report their existing diagnostic.

  • Source/JavaScriptCore/aot/builtins/generator/collect-static-tables.ts:
    (attributeWords): add the CustomValue mapping.

Validation: the paired Bun regression exercises the real collector through Linux x64 DebugASAN-AOT, with native linkage pinned to upstream WebKit 4d45755fed4aeef19e95beb90d3d0c884a2812bd. Unmodified upstream generator sources fail the new missing-member assertion (0 pass, 1 fail); a source copy with only this mapping passes the complete test file (5 pass, 0 fail, 0 skip, 0 todo). Both runs use Bun test commit 626af7df307f6762279b71b47919f1e85ddc997c; the native binary digest stays unchanged and tracked source/index are preserved.

Qualification: https://crabbox.openclaw.ai/portal/runs/run_b5d3f2fd5a0e999818e6070ce1010d57

This is source-level collector proof; it does not claim a runtime behavior change or cross-platform qualification. The production mapping was first carried in openclaw@10789b5.

Associated regression and test: oven-sh/bun#47697

The static-table collector rejects `CustomValue` as an unknown attribute and drops its entries. Recognize it as a `DataProperty` whose value is the native getter. The existing getter-column handling then retains getter/setter symbols for writable entries and omits the setter for `ReadOnly` entries. Unknown attributes still report their existing diagnostic.

* Source/JavaScriptCore/aot/builtins/generator/collect-static-tables.ts:
(attributeWords): add the `CustomValue` mapping.

Validation: the paired Bun regression exercises the real collector through Linux x64 DebugASAN-AOT, with native linkage pinned to upstream WebKit `4d45755fed4aeef19e95beb90d3d0c884a2812bd`. Unmodified upstream generator sources fail the new missing-member assertion (0 pass, 1 fail); a source copy with only this mapping passes the complete test file (5 pass, 0 fail, 0 skip, 0 todo). Both runs use Bun test commit `626af7df307f6762279b71b47919f1e85ddc997c`; the native binary digest stays unchanged and tracked source/index are preserved.

Qualification: https://crabbox.openclaw.ai/portal/runs/run_b5d3f2fd5a0e999818e6070ce1010d57

This is source-level collector proof; it does not claim a runtime behavior change or cross-platform qualification. The production mapping was first carried in 10789b5.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 4ee7c17e-64b4-4e5a-ba0f-405201a61fdc
Commits

Reviewing files that changed from the base of the PR and between 0ef2dfd and c1fcb74.

Files selected for processing: 1
  • Source/JavaScriptCore/aot/builtins/generator/collect-static-tables.ts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

The static-table generator now recognizes CustomValue as a data property and uses the Getter column for its value.

Changes

Static table attribute mapping

Layer / File(s) Summary
Map CustomValue as a data property
Source/JavaScriptCore/aot/builtins/generator/collect-static-tables.ts
The attribute map now assigns CustomValue a data-property meaning and uses the Getter column as its value.
Merge Risk: Minimal · up to c1fcb

No merge-blocking issue is identified; the change is ready under normal checks.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: recognizing native CustomValue table entries in the AOT collector.
Description check Passed The description directly explains the CustomValue mapping, its collector behavior, validation results, and scope.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Jarred-Sumner

Copy link
Copy Markdown
Collaborator

Closing: #997 is merged. It replaces the middle and the back end of the ahead-of-time compiler, so this no longer applies to main and would conflict with it. If the problem still shows on main, please open a new pull request against it.

vincentkoc added a commit to vincentkoc/WebKit that referenced this pull request Nov 26, 2026
The AOT collector rejects CustomValue as an unknown attribute and drops the static-table entry. A native CustomValue appears as a data property to JavaScript. Classify it as DataProperty and use the existing Getter column to record its native symbols. ReadOnly entries keep only the getter.

This carries the generator correction proposed in oven-sh#985 to the replacement compiler from oven-sh#997. The downstream regression is oven-sh/bun#47697. Bun can enable it once it pins a WebKit revision containing this change.

Tested the collector directly with Node.js 26.7.0 and the three table rows from oven-sh/bun#47697. On 32300d4 the collector emitted no members and diagnosed all three rows. With this change the writable row produced readValue and setReadValue, the ReadOnly row produced only readReadonly, and UnknownValue still produced its original diagnostic.
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.

2 participants