Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

handle non-recursive root objects

  • Loading branch information...
commit a8348a0614fdb9cf8bbf778c935f191d4e7455e7 1 parent bc49cf6
@plobsing authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/deepclone.winxed
View
6 src/deepclone.winxed
@@ -71,8 +71,8 @@ class DeepClone {
self.str_queue = new 'ResizableStringArray'();
self.pmc_queue = new 'ResizablePMCArray'();
- var todo = self.todo;
- ${ push todo, orig };
+ self.push_pmc(orig); // create dup of root
+ self.shift_pmc(); // reset queue
}
function get_pmc[vtable] () {
@@ -118,7 +118,7 @@ class DeepClone {
dup = null;
}
else {
- int addr = nci['pmc_addr'](v);
+ int addr = nci['pmc_addr'](v);
dup = self.seen[addr];
${ isnull nullp, dup };
if (nullp) {
Please sign in to comment.
Something went wrong with that request. Please try again.