Skip to content
Browse files

Merge pull request #775 from kachick/fix-kernel-extend-when_frozen

Kernel#extend should raise a RuntimeError on frozen instance
  • Loading branch information
alex committed Jun 26, 2013
2 parents 354ad2e + 09f9b43 commit 00a2951560f997561249bdda2d3d3bcf6896bc04
Showing with 1 addition and 1 deletion.
  1. +0 −1 spec/tags/core/kernel/extend_tags.txt
  2. +1 −0 topaz/modules/
@@ -2,4 +2,3 @@ fails:Kernel#extend calls extend_object on argument
fails:Kernel#extend does not calls append_features on arguments metaclass
fails:Kernel#extend calls extended on argument
fails:Kernel#extend makes the class a kind_of? the argument
fails:Kernel#extend raises a RuntimeError if self is frozen
@@ -456,6 +456,7 @@ def method_singleton_class(self, space):
return space.getsingletonclass(self)

def method_extend(self, space, w_mod):
if not space.is_kind_of(w_mod, space.w_module) or space.is_kind_of(w_mod, space.w_class):
if space.is_kind_of(w_mod, space.w_class):

0 comments on commit 00a2951

Please sign in to comment.
You can’t perform that action at this time.