Skip to content

Commit

Permalink
Merge pull request #56 from ianks/default-wb-protected
Browse files Browse the repository at this point in the history
Default `TypedData` as `wb_protected` when there is no mark function
  • Loading branch information
matsadler committed Feb 8, 2023
2 parents eda735f + 930777d commit 70c0384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typed_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ where
if self.free_immediately {
flags |= RUBY_TYPED_FREE_IMMEDIATELY as VALUE;
}
if self.wb_protected {
if self.wb_protected || !self.mark {
flags |= RUBY_TYPED_WB_PROTECTED as VALUE;
}
#[cfg(ruby_gte_3_0)]
Expand Down

0 comments on commit 70c0384

Please sign in to comment.