From 7acacc524213058a2368b5fa751fac7ea08ba230 Mon Sep 17 00:00:00 2001 From: Matthew Carter Date: Tue, 6 Nov 2018 22:14:11 -0500 Subject: [PATCH] Editorial: Update abstract line of JSON.stringify section (#1345) - Previously did not account for any obvious mention of non-string return value. --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index cf059a2d34..fe6d80cbfb 100644 --- a/spec.html +++ b/spec.html @@ -35867,7 +35867,7 @@

Runtime Semantics: InternalizeJSONProperty ( _holder_, _name_ )

JSON.stringify ( _value_ [ , _replacer_ [ , _space_ ] ] )

-

The `stringify` function returns a String in UTF-16 encoded JSON format representing an ECMAScript value. It can take three parameters. The _value_ parameter is an ECMAScript value, which is usually an object or array, although it can also be a String, Boolean, Number or *null*. The optional _replacer_ parameter is either a function that alters the way objects and arrays are stringified, or an array of Strings and Numbers that acts as an inclusion list for selecting the object properties that will be stringified. The optional _space_ parameter is a String or Number that allows the result to have white space injected into it to improve human readability.

+

The `stringify` function returns a String in UTF-16 encoded JSON format representing an ECMAScript value, or *undefined*. It can take three parameters. The _value_ parameter is an ECMAScript value, which is usually an object or array, although it can also be a String, Boolean, Number or *null*. The optional _replacer_ parameter is either a function that alters the way objects and arrays are stringified, or an array of Strings and Numbers that acts as an inclusion list for selecting the object properties that will be stringified. The optional _space_ parameter is a String or Number that allows the result to have white space injected into it to improve human readability.

These are the steps in stringifying an object:

1. Let _stack_ be a new empty List.