Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 351ebd767c260a85e9896f000629fc9df3397f45 https://github.com/MacRuby/MacRuby/commit/351ebd767c260a85e9896f000629fc9df3... Author: Watson <watson1978@gmail.com> Date: 2011-03-28 (Mon, 28 Mar 2011) Changed paths: M spec/frozen/tags/macruby/core/object/instance_exec_tags.txt M vm.cpp M vm_eval.c Log Message: ----------- Object#instance_exec will raise a TypeError when defining/alias methods on numerics. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions assert_raise(TypeError){ 1.instance_exec { def foo; end } } assert_raise(TypeError){ 1.instance_exec { alias :foo :to_s} } puts :ok }}} Commit: 954a8c7b55f8c31bd7384d8ce513b37abf0b24b1 https://github.com/MacRuby/MacRuby/commit/954a8c7b55f8c31bd7384d8ce513b37abf... Author: Watson <watson1978@gmail.com> Date: 2011-03-28 (Mon, 28 Mar 2011) Changed paths: M spec/frozen/tags/macruby/core/kernel/instance_eval_tags.txt M spec/frozen/tags/macruby/language/alias_tags.txt M vm_eval.c Log Message: ----------- Object#instance_eval will raise a TypeError when defining/alias methods on numerics. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions assert_raise(TypeError){ 1.instance_eval { def foo; end } } assert_raise(TypeError){ 1.instance_eval { alias :foo :to_s} } puts :ok }}} Compare: https://github.com/MacRuby/MacRuby/compare/01965bc...954a8c7