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