diff options
author | John Hawthorn <[email protected]> | 2021-06-14 17:32:42 -0700 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2021-06-16 14:09:09 -0700 |
commit | c10d5085a247266c6399dc6fb68706d87cbdab05 () | |
tree | 83e8bb48cf75b3e569fa789ee59af2f6f4170df9 /mini_builtin.c | |
parent | 2b17d2f2970d382ac61d15d66f46d1c56f8f2598 (diff) |
Enable frozen_string_literal in builtin_iseq_load
Currently this has a fairly minor effect as strings are not used heavily inside the builtins (outside of warnings, requires, and errors). Hopefully this allows us to use strings in the future where appropriate.
Notes: Merged: https://.com/ruby/ruby/pull/4573
-rw-r--r-- | mini_builtin.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -23,7 +23,20 @@ builtin_iseq_load(const char *feature_name, const struct rb_builtin_function *ta vm->builtin_function_table = table; vm->builtin_inline_index = 0; - const rb_iseq_t *iseq = rb_iseq_new(&ast->body, name_str, name_str, Qnil, NULL, ISEQ_TYPE_TOP); GET_VM()->builtin_function_table = NULL; rb_ast_dispose(ast); |