summaryrefslogtreecommitdiff
path: root/prism
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2025-03-12 13:16:38 -0400
committergit <[email protected]>2025-03-12 19:15:03 +0000
commit242e99eb0f32e1705413d084126be4ae6525a804 ()
treecc05ec6908dbb7bdf0f2bbc6f5d28fcf18f6eefc /prism
parent08b3a45bc97c835b4677bf76dbce68fd51d81897 (diff)
[ruby/prism] Mark extension as Ractor-safe
https://.com/ruby/prism/commit/10e5431b38
-rw-r--r--prism/extension.c5
-rw-r--r--prism/templates/lib/prism/serialize.rb.erb2
2 files changed, 6 insertions, 1 deletions
@@ -1331,6 +1331,11 @@ Init_prism(void) {
);
}
// Grab up references to all of the constants that we're going to need to
// reference throughout this extension.
rb_cPrism = rb_define_module("Prism");
@@ -592,7 +592,7 @@ module Prism
<%- tokens.each do |token| -%>
<%= token.name.to_sym.inspect %>,
<%- end -%>
- ]
private_constant :MAJOR_VERSION, :MINOR_VERSION, :_VERSION
private_constant :ConstantPool, :FastStringIO, :Loader, :TOKEN_TYPES