Skip to content

Commit c682d06

Browse files
shvaikaleshljharb
authored andcommitted
Editorial: Tweak handling of negative space values in JSON.stringify (#1545)
1 parent 935454e commit c682d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36345,7 +36345,7 @@ <h1>JSON.stringify ( _value_ [ , _replacer_ [ , _space_ ] ] )</h1>
3634536345
1. Set _space_ to ? ToString(_space_).
3634636346
1. If Type(_space_) is Number, then
3634736347
1. Set _space_ to min(10, ! ToInteger(_space_)).
36348-
1. Let _gap_ be the String value containing _space_ occurrences of the code unit 0x0020 (SPACE). This will be the empty String if _space_ is less than 1.
36348+
1. If _space_ &lt; 1, let _gap_ be the empty String; otherwise let _gap_ be the String value containing _space_ occurrences of the code unit 0x0020 (SPACE).
3634936349
1. Else if Type(_space_) is String, then
3635036350
1. If the length of _space_ is 10 or less, let _gap_ be _space_; otherwise let _gap_ be the String value consisting of the first 10 code units of _space_.
3635136351
1. Else,

0 commit comments

Comments
 (0)