Skip to content

Commit

Permalink
fix cloning cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed May 23, 2019
1 parent 0262037 commit 5687015
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* fix double unquote symbol
* throw error when unquote-splice on atom in the middle of the list
* don't create cycles in unquote-splicing
* fix cloning cycles

## 0.15.1
### Bug fixes
Expand Down
3 changes: 2 additions & 1 deletion dist/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* http://javascript.nwbox.com/ContentLoaded/
* http://javascript.nwbox.com/ContentLoaded/MIT-LICENSE
*
* build: Wed, 22 May 2019 17:29:20 +0000
* build: Thu, 23 May 2019 07:30:30 +0000
*/
(function () {
'use strict';
Expand Down Expand Up @@ -1316,6 +1316,7 @@
visited.set(node, pair);
pair.car = clone(node.car);
pair.cdr = clone(node.cdr);
pair.cycles = node.cycles;
return pair;
}

Expand Down
4 changes: 2 additions & 2 deletions dist/lips.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@
visited.set(node, pair);
pair.car = clone(node.car);
pair.cdr = clone(node.cdr);
pair.cycles = node.cycles;
return pair;
}
return node;
Expand Down

0 comments on commit 5687015

Please sign in to comment.