diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-02-07 10:00:35 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-02-07 10:42:23 -0500 |
| commit | aed052ce9d9eeeccecb12c444aa7327d1e078a51 (patch) | |
| tree | 17b418ca8aff1484c029392fb28e42b28c17a2bc | |
| parent | 5f4245e74b84e1435d51f45a43717a5d33aef4cb (diff) | |
[PRISM] Revert incorrect frozen string literal handling
| -rw-r--r-- | iseq.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1002,15 +1002,8 @@ pm_iseq_new_with_opt(pm_scope_node_t *node, VALUE name, VALUE path, VALUE realpa .end_pos = { .lineno = (int) end.line, .column = (int) end.column } }; - rb_compile_option_t *current_option = (rb_compile_option_t *) option; - if (node->parser->frozen_string_literal) { - rb_compile_option_t new_option = *option; - new_option.frozen_string_literal = true; - current_option = &new_option; - } - prepare_iseq_build(iseq, name, path, realpath, first_lineno, &code_location, -1, - parent, isolated_depth, type, Qnil, current_option); + parent, isolated_depth, type, Qnil, option); pm_iseq_compile_node(iseq, node); finish_iseq_build(iseq); |
