Index: src/json.js |
diff --git a/src/json.js b/src/json.js |
index 90ffa25131d6a2b79d9dbfd0f77fc5c100e6d318..2d40f7b5578534c204785f5d4fc6c6a33bb9a67c 100644 |
--- a/src/json.js |
+++ b/src/json.js |
@@ -49,7 +49,7 @@ function JSONParse(text, reviver) { |
function SerializeArray(value, replacer, stack, indent, gap) { |
if (!%PushIfAbsent(stack, value)) { |
- throw MakeTypeError('circular_structure', $Array()); |
+ throw MakeTypeError('circular_structure', []); |
} |
var stepback = indent; |
indent += gap; |
@@ -79,7 +79,7 @@ function SerializeArray(value, replacer, stack, indent, gap) { |
function SerializeObject(value, replacer, stack, indent, gap) { |
if (!%PushIfAbsent(stack, value)) { |
- throw MakeTypeError('circular_structure', $Array()); |
+ throw MakeTypeError('circular_structure', []); |
} |
var stepback = indent; |
indent += gap; |
@@ -223,10 +223,10 @@ function SetUpJSON() { |
%AddNamedProperty($JSON, symbolToStringTag, "JSON", READ_ONLY | DONT_ENUM); |
// Set up non-enumerable properties of the JSON object. |
- InstallFunctions($JSON, DONT_ENUM, $Array( |
+ InstallFunctions($JSON, DONT_ENUM, [ |
"parse", JSONParse, |
"stringify", JSONStringify |
- )); |
+ ]); |
} |
SetUpJSON(); |