[ruby-cvs:59408] ko1:r52257 (trunk): * ruby.c: introduce --enable-frozen-string-literal-debug option.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Sat Oct 24 04:02:59 JST 2015


ko1	2015-10-24 04:02:55 +0900 (Sat, 24 Oct 2015)

  New Revision: 52257

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52257

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/error.c
    trunk/iseq.c
    trunk/iseq.h
    trunk/ruby.c
    trunk/test/ruby/test_rubyoptions.rb


More information about the ruby-cvs mailing list