You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
133 B
7 lines
133 B
5 years ago
|
var safeStringify = require('./')
|
||
|
var o = {a: 1}
|
||
|
o.o = o
|
||
|
|
||
|
console.log(safeStringify(o))
|
||
|
console.log(JSON.stringify(o)) // <-- throws
|