Repository navigation
Rust JSG: use #[jsg_traced] for the ok-drop compile test's Binding - #8762
Merged
Merged
Conversation
`Binding` in ok-drop-without-gc-references.rs holds only a `Vec<u8>`, but still used `jsg_traced_unchecked!`, which checks nothing. In this patch it uses `#[jsg_traced]`, which checks that the field holds no GC references. The other uses of the unchecked macro wrap types from outside JSG, hold a strong `v8::Global`, or are the generic `<T>` form.
There was a problem hiding this comment.
✅ Approved — The change is a two-line test cleanup. No issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code reviewer: ✅ LGTM
No issues found.
Reviewed commit: bb7d77ef
guybedford
approved these changes
Nov 24, 2026
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.
Bindingin ok-drop-without-gc-references.rs holds only aVec<u8>, but still usedjsg_traced_unchecked!, which checks nothing.In this patch it uses
#[jsg_traced], which checks that the field holds no GC references. The other uses of the unchecked macro wrap types from outside JSG, hold a strongv8::Global, or are the generic<T>form.