Repository navigation
fix(aot): recognize native CustomValue table entries - #985
vincentkoc wants to merge 1 commit into
Conversation
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.
|
No actionable comments were generated in the recent review.
|
| 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: 
4
- 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.
|
Closing: #997 is merged. It replaces the middle and the back end of the ahead-of-time compiler, so this no longer applies to |
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.
fix(aot): recognize native CustomValue table entries
Associated regression and test: oven-sh/bun#47697
The static-table collector rejects
CustomValueas an unknown attribute and drops its entries. Recognize it as aDataPropertywhose value is the native getter. The existing getter-column handling then retains getter/setter symbols for writable entries and omits the setter forReadOnlyentries. Unknown attributes still report their existing diagnostic.(attributeWords): add the
CustomValuemapping.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 commit626af7df307f6762279b71b47919f1e85ddc997c; 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.