mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
b4f3f3c103
commit
91bf7eb274
10 changed files with 94 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue