Skip to content

Commit e43ca2a

Browse files
author
James Halliday
committed
fix conflict
2 parents 4a3ac9c + 7f5f443 commit e43ca2a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/nested.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ test('repeated non-cyclic value', function(t) {
3333
var two = { a: one, b: one };
3434
t.equal(stringify(two), '{"a":{"x":1},"b":{"x":1}}');
3535
});
36+
37+
test('acyclic but with reused obj-property pointers', function (t) {
38+
t.plan(1);
39+
var x = { a: 1 }
40+
var y = { b: x, c: x }
41+
t.equal(stringify(y), '{"b":{"a":1},"c":{"a":1}}');
42+
});

0 commit comments

Comments
 (0)