Repository navigation
bindgen: move every Rust function that takes a CallFrame to schemas and delete #[host_fn], $rust and $newRustFunction
#46540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
70336ef
bindgen: move every Rust function that takes a `CallFrame` to schemas…
dylan-conway b2343d6
Keep `ERR_MISSING_ARGS` for `URL.revokeObjectURL()` and test `Bun.res…
dylan-conway acd9aa8
Name the schema `BunTest.bind.ts` so that a release build has it, and…
dylan-conway d343a1c
[autofix.ci] apply automated fixes
autofix-ci[bot] dac641d
bindgen: add `b.value`, make functions through one helper, and name s…
dylan-conway 13b5a30
Merge remote-tracking branch 'origin/claude/bindgen-functions' into c…
dylan-conway 4c5877f
[autofix.ci] apply automated fixes
autofix-ci[bot] 432b725
Write `isValue` as a plain field so that Node runs the generator, and…
dylan-conway 2355e41
Take a `BuildArtifact` in `URL.createObjectURL` as `main` does, free …
dylan-conway 417eda0
Type the arguments and results of the moved functions in their schema…
dylan-conway 7de0761
[autofix.ci] apply automated fixes
autofix-ci[bot] 28d4d75
Add `.otherAsNull` for what is ignored unless it is of the type, name…
dylan-conway 9262d0d
Make `.otherAsNull` go by the kind of a value, parse an enumeration b…
dylan-conway dc4c827
Borrow a dictionary argument that can be absent, skip the markdown op…
dylan-conway 9d18931
Keep how an argument reaches the body with its type, and say what to …
dylan-conway 52f16cf
Have a conversion say by what it returns that it threw, compare one s…
dylan-conway acb5a41
Refuse `b.null` outside a union, a range under a modifier in an array…
dylan-conway 86b82ef
Escape a quote or a backslash in the switch label of an enumeration's…
dylan-conway 5745562
Take `Array.prototype` as an array, as `Array.isArray` does
dylan-conway ac7f2ba
Expect `Array.prototype` as a tls option to be an empty array, as in …
dylan-conway 3fcb01a
Add `requiredArguments`, which throws `ERR_MISSING_ARGS` for a shorte…
dylan-conway 59f808f
Report `URL.createObjectURL()` as a wrong type, as Node does
dylan-conway 4bd1e3a
Count `requiredArguments` in `.length` and the TypeScript types, and …
dylan-conway File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Pass received JS values into signature validation.
If
b.fnsetspassThis: trueorpassCallee: true, areturns: b.anysignature with the default capability fails construction.new Signature(options)does not receive the flag that permits a function to return a JS value it already holds. Pass the applicable flag when constructing the signature, asMethoddoes forpassThis.🤖 Prompt for AI Agents