[ruby/prism] Freeze Prism::VERSION

Closes https://github.com/ruby/prism/pull/3422

https://github.com/ruby/prism/commit/b488a84253
This commit is contained in:
Earlopain 2025-01-19 12:22:52 +01:00 committed by git
parent 65a7c69188
commit f27ed98eff

View File

@ -1372,7 +1372,7 @@ Init_prism(void) {
/**
* The version of the prism library.
*/
rb_define_const(rb_cPrism, "VERSION", rb_str_new2(EXPECTED_PRISM_VERSION));
rb_define_const(rb_cPrism, "VERSION", rb_str_freeze(rb_str_new_cstr(EXPECTED_PRISM_VERSION)));
// First, the functions that have to do with lexing and parsing.
rb_define_singleton_method(rb_cPrism, "lex", lex, -1);