Skip to content
Permalink
Browse files

Merge pull request #794 from sideshowcoder/fix_array_clone

Fix array clone frozen object error
  • Loading branch information
alex committed Jul 12, 2013
2 parents 90b24be + c396d60 commit 07e383c3b5067d909888111bae2251b53bcb1d1d
Showing with 1 addition and 2 deletions.
  1. +0 −1 spec/tags/core/array/clone_tags.txt
  2. +1 −1 topaz/modules/kernel.py

This file was deleted.

@@ -329,9 +329,9 @@ def method_clone(self, space):
raise space.error(space.w_TypeError, "can't dup %s" % space.getclass(self).name)
w_dup = space.send(space.getnonsingletonclass(self), "allocate")
w_dup.copy_instance_vars(space, self)
space.infect(w_dup, self, freeze=True)
w_dup.copy_singletonclass(space, space.getsingletonclass(self))
space.send(w_dup, "initialize_clone", [self])
space.infect(w_dup, self, freeze=True)
return w_dup

@moduledef.method("sleep")

0 comments on commit 07e383c

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