Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 89d0756

Please sign in to comment.