Project

General

Profile

Backport #8043

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

=begin 
 The check for "dumpability" is incorrect: 

     o = Object.new 
     def o.foo; end 
     Marshal.dump(o) # => TypeError: singleton can't be dumped 
     o.singleton_class.send :prepend, Enumerable 
     Marshal.dump(o) # => "\x04\be:\x0FEnumerablee:\vObjecto;\x06\0", should fail 
 =end

Back