summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-23 19:02:55 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-23 19:02:55 +0000
commit54716fe7ebbf20b5e91fdbe9b65e0bedb0c4836a (patch)
treec0e89d90d7ad34e7aa833a800227724f62c0930a /iseq.h
parent31f21aed2cee297a1fc316d60744697580446608 (diff)
* ruby.c: introduce --enable-frozen-string-literal-debug option.
If this option is enabled, the modify error will be: can't modify frozen String (RuntimeError) => can't modify frozen String, created at test.rb:3 (RuntimeError) * iseq.h: add compile option frozen_string_literal_debug. * compile.c: catch up this fix. * error.c (rb_error_frozen): ditto. * iseq.c (set_compile_option_from_hash): ditto. * test/ruby/test_rubyoptions.rb: add a test for this fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index 13d2f2630c..699524f17f 100644
--- a/iseq.h
+++ b/iseq.h
@@ -67,6 +67,7 @@ struct rb_compile_option_struct {
int stack_caching;
int trace_instruction;
int frozen_string_literal;
+ int frozen_string_literal_debug;
int debug_level;
};