Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Remove AggregateError.prototype.toString
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek authored and chicoxyzzy committed Nov 11, 2019
1 parent e84b0ac commit 0fe86b6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions spec.html
Expand Up @@ -182,22 +182,6 @@ <h1>get _AggregateError_.prototype.errors</h1>
1. Return ! CreateArrayFromList(_E_.[[AggregateErrors]]).
</emu-alg>
</emu-clause>

<emu-clause id="sec-aggregate-error.prototype.toString">
<h1>_AggregateError_.prototype.toString ( )</h1>
<p>The following steps are taken:</p>
<emu-alg>
1. Let _O_ be the *this* value.
1. If Type(_O_) is not Object, throw a *TypeError* exception.
1. Let _name_ be ? Get(_O_, `"name"`).
1. If _name_ is *undefined*, set _name_ to `"AggregateError"`; otherwise set _name_ to ? ToString(_name_).
1. Let _msg_ be ? Get(_O_, `"message"`).
1. If _msg_ is *undefined*, set _msg_ to the empty String; otherwise set _msg_ to ? ToString(_msg_).
1. If _name_ is the empty String, return _msg_.
1. If _msg_ is the empty String, return _name_.
1. Return the string-concatenation of _name_, the code unit 0x003A (COLON), the code unit 0x0020 (SPACE) and _msg_.
</emu-alg>
</emu-clause>
</emu-clause>

<emu-clause id="sec-properties-of-aggregate-error-instances">
Expand Down

0 comments on commit 0fe86b6

Please sign in to comment.