mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
marshal.c: check for prepended
* marshal.c (w_extended): check for prepended object. [ruby-core:53206] [Bug #8043] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b0c40fca24
commit
b3265c0ed6
3 changed files with 17 additions and 2 deletions
|
|
@ -365,6 +365,11 @@ module MarshalTestLib
|
|||
o = Object.new
|
||||
def o.m() end
|
||||
assert_raise(TypeError) { marshaltest(o) }
|
||||
|
||||
bug8043 = '[ruby-core:53206] [Bug #8043]'
|
||||
class << o; prepend Mod1; end
|
||||
assert_raise(TypeError, bug8043) {marshaltest(o)}
|
||||
|
||||
o = Object.new
|
||||
c = class << o
|
||||
@v = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue