Skip to content

Commit

Permalink
Replaced taint w/ Rubinius::Type.infect in Marshal
Browse files Browse the repository at this point in the history
Done to emulate MRI behavior. In MRI, Marshal bypasses calling
the object's taint method and instead taints the object via C macros.
  • Loading branch information
sshao committed Nov 8, 2014
1 parent a057ef5 commit 89d0756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/common/marshal.rb
Expand Up @@ -446,7 +446,7 @@ def construct(ivar_index = nil, call_proc = true)

call obj if @proc and call_proc

@stream.tainted? ? obj.taint : obj
@stream.tainted? ? Rubinius::Type.infect(obj, @stream) : obj
end

def construct_class
Expand Down

0 comments on commit 89d0756

Please sign in to comment.