Refactor frozen_string_literal check during compilation

In preparation for https://bugs.ruby-lang.org/issues/20205.

The `frozen_string_literal` compilation option will no longer
be a boolean but a tri-state: `on/off/default`.
This commit is contained in:
Jean Boussier 2024-03-15 12:38:39 +01:00 committed by Jean Boussier
parent b4f3f3c103
commit 91bf7eb274
10 changed files with 94 additions and 13 deletions

View file

@ -1663,6 +1663,8 @@ pm_eval_make_iseq(VALUE src, VALUE fname, int line,
pm_parse_result_t result = { 0 };
pm_options_line_set(&result.options, line);
pm_options_frozen_string_literal_set(&result.options, rb_iseq_opt_frozen_string_literal());
// Cout scopes, one for each parent iseq, plus one for our local scope
int scopes_count = 0;
do {