[MacRuby/MacRuby] a89c32: in Hash#update, checks first whether receiver is f...
30 Sep
2011
30 Sep
'11
12:57 a.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: a89c327a0ae611b0f6c94200aeb486d3d8544088 https://github.com/MacRuby/MacRuby/commit/a89c327a0ae611b0f6c94200aeb486d3d8... Author: Watson <watson1978@gmail.com> Date: 2011-09-29 (Thu, 29 Sep 2011) Changed paths: M hash.c Log Message: ----------- in Hash#update, checks first whether receiver is frozen. Test Script: ---- require 'test/unit/assertions.rb' include Test::Unit::Assertions hash = {} obj = Object.new def obj.to_hash() raise Exception, "should not invoke #to_hash" end hash.freeze assert_raise(RuntimeError){ hash.update(obj) }
5153
Age (days ago)
5153
Last active (days ago)
0 comments
1 participants
participants (1)
-
noreply@github.com