Skip to content

Commit 203b668

Browse files
Editorial: replace uses of the ECMAScript Type macro with is-a tests
1 parent 4abe1bc commit 203b668

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

index.bs

+21-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Markup Shorthands: markdown yes
1414
urlPrefix: https://tc39.github.io/ecma262/#; spec: ECMASCRIPT
1515
type: abstract-op
1616
text: ObjectCreate; url: sec-objectcreate
17-
text: Type; url: sec-ecmascript-data-types-and-values
1817
text: ToString; url: sec-tostring
1918
text: Call; url: sec-call
2019
type: interface
@@ -24,6 +23,24 @@ urlPrefix: https://tc39.github.io/ecma262/#; spec: ECMASCRIPT
2423
type: dfn
2524
text: %parseFloat%; url: sec-parsefloat-string
2625
text: %parseInt%; url: sec-parseint-string-radix
26+
url: sec-ecmascript-language-types-bigint-type
27+
text: is a BigInt
28+
text: is not a BigInt
29+
url: sec-ecmascript-language-types-boolean-type
30+
text: is a Boolean
31+
text: is not a Boolean
32+
url: sec-ecmascript-language-types-number-type
33+
text: is a Number
34+
text: is not a Number
35+
url: sec-ecmascript-language-types-string-type
36+
text: is a String
37+
text: is not a String
38+
url: sec-ecmascript-language-types-symbol-type
39+
text: is a Symbol
40+
text: is not a Symbol
41+
url: sec-object-type
42+
text: is an Object
43+
text: is not an Object
2744
</pre>
2845

2946
<h2 id="status" class="no-num no-toc">Status</h2>
@@ -92,7 +109,7 @@ its \[[Prototype]] an empty object, created as if by
92109
1. If |data| is [=list/is empty|empty=], [=list/append=] |message| to |data|.
93110
1. Otherwise:
94111
1. Let |first| be |data|[0].
95-
1. If <a abstract-op>Type</a>(|first|) is not String, then [=list/prepend=] |message| to |data|.
112+
1. If |first| [=is not a String=], then [=list/prepend=] |message| to |data|.
96113
1. Otherwise:
97114
1. Let |concat| be the concatenation of |message|, U+003A (:), U+0020 SPACE, and |first|.
98115
1. Set |data|[0] to |concat|.
@@ -315,11 +332,11 @@ more arguments are left. It returns a [=/list=] of objects suitable for printing
315332
1. If |specifier| is `%s`, let |converted| be the result of
316333
[$Call$](<a idl>%String%</a>, **undefined**, « |current| »).
317334
1. If |specifier| is `%d` or `%i`:
318-
1. If [$Type$](|current|) is Symbol, let |converted| be `NaN`
335+
1. If |current| [=is a Symbol=], let |converted| be `NaN`
319336
1. Otherwise, let |converted| be the result of
320337
[$Call$]([=%parseInt%=], **undefined**, « |current|, 10 »).
321338
1. If |specifier| is `%f`:
322-
1. If [$Type$](|current|) is Symbol, let |converted| be `NaN`
339+
1. If |current| [=is a Symbol=], let |converted| be `NaN`
323340
1. Otherwise, let |converted| be the result of
324341
[$Call$]([=%parseFloat%=], **undefined**, « |current| »).
325342
1. If |specifier| is `%o`, optionally let |converted| be |current| with

0 commit comments

Comments
 (0)