Skip to content

Commit

Permalink
Editorial: Use [[StringData]] to identify strings in `%Object_toStr…
Browse files Browse the repository at this point in the history
…ing%` (#1361)
  • Loading branch information
devsnek authored and ljharb committed Apr 10, 2019
1 parent 95980fc commit fce0895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -24599,12 +24599,12 @@ <h1>Object.prototype.toString ( )</h1>
1. Let _O_ be ! ToObject(*this* value).
1. Let _isArray_ be ? IsArray(_O_).
1. If _isArray_ is *true*, let _builtinTag_ be `"Array"`.
1. Else if _O_ is a String exotic object, let _builtinTag_ be `"String"`.
1. Else if _O_ has a [[ParameterMap]] internal slot, let _builtinTag_ be `"Arguments"`.
1. Else if _O_ has a [[Call]] internal method, let _builtinTag_ be `"Function"`.
1. Else if _O_ has an [[ErrorData]] internal slot, let _builtinTag_ be `"Error"`.
1. Else if _O_ has a [[BooleanData]] internal slot, let _builtinTag_ be `"Boolean"`.
1. Else if _O_ has a [[NumberData]] internal slot, let _builtinTag_ be `"Number"`.
1. Else if _O_ has a [[StringData]] internal slot, let _builtinTag_ be `"String"`.
1. Else if _O_ has a [[DateValue]] internal slot, let _builtinTag_ be `"Date"`.
1. Else if _O_ has a [[RegExpMatcher]] internal slot, let _builtinTag_ be `"RegExp"`.
1. Else, let _builtinTag_ be `"Object"`.
Expand Down

0 comments on commit fce0895

Please sign in to comment.