[ruby-cvs:64324] nobu:r57158 (trunk): assertions.rb: syntax check by iseq

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Dec 23 12:22:35 JST 2016


nobu	2016-12-23 12:22:35 +0900 (Fri, 23 Dec 2016)

  New Revision: 57158

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

  Log:
    assertions.rb: syntax check by iseq
    
    * test/lib/test/unit/assertions.rb (assert_valid_syntax): use
      RubyVM::InstructionSequence.compile to get rid of executing the
      code, instead of catch&throw.  sample/trick2015/kinaba/entry.rb
      no longer raises an Invalid return.
    
    * test/lib/test/unit/assertions.rb (assert_syntax_error): ditto.

  Modified files:
    trunk/test/lib/test/unit/assertions.rb


More information about the ruby-cvs mailing list