Skip to content

Commit

Permalink
Formatter uses String() instead of ToString() for %s specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
domfarolino committed Feb 12, 2018
1 parent d754102 commit 0054666
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ urlPrefix: https://tc39.github.io/ecma262/#; spec: ECMASCRIPT
text: %parseInt%; url: sec-parseint-string-radix
type: interface
text: %ObjectPrototype%; url: sec-properties-of-the-object-prototype-object
type: constructor
text: %String%; url: sec-string-constructor
</pre>

<h2 id="status" class="no-num no-toc">Status</h2>
Expand Down Expand Up @@ -264,7 +266,7 @@ more arguments are left. It returns a [=list=] of objects suitable for printing.
1. Let |current| be the second element of |args|.
1. Find the first possible format specifier |specifier|, from the left to the right in |target|.
1. If |specifier| is `%s`, let |converted| be the result of
<a abstract-op>ToString</a>(|current|).
<a constructor>%String%</a>(|current|).
1. If |specifier| is `%d` or `%i`, let |converted| be the result of
<a abstract-op>%parseInt%</a>(|current|, 10).
1. If |specifier| is `%f`, let |converted| be the result of
Expand Down

0 comments on commit 0054666

Please sign in to comment.