| Index: src/json.js
|
| diff --git a/src/json.js b/src/json.js
|
| index e1bb146eb95370479fb4a0ef4d333d3afa7bbf90..f20106ab69b9d8170fd5200ca17767bc7b56257d 100644
|
| --- a/src/json.js
|
| +++ b/src/json.js
|
| @@ -51,7 +51,9 @@
|
|
|
|
|
| function SerializeArray(value, replacer, stack, indent, gap) {
|
| - if (!%PushIfAbsent(stack, value)) throw MakeTypeError(kCircularStructure);
|
| + if (!%PushIfAbsent(stack, value)) {
|
| + throw MakeTypeError('circular_structure', []);
|
| + }
|
| var stepback = indent;
|
| indent += gap;
|
| var partial = new InternalArray();
|
| @@ -80,7 +82,9 @@
|
|
|
|
|
| function SerializeObject(value, replacer, stack, indent, gap) {
|
| - if (!%PushIfAbsent(stack, value)) throw MakeTypeError(kCircularStructure);
|
| + if (!%PushIfAbsent(stack, value)) {
|
| + throw MakeTypeError('circular_structure', []);
|
| + }
|
| var stepback = indent;
|
| indent += gap;
|
| var partial = new InternalArray();
|
|
|