@@ -7641,8 +7641,7 @@ that correspond to the union’s [=member types=].
7641
7641
then return the IDL value <emu-val>null</emu-val>.
7642
7642
1. Let |types| be the [=flattened member types=]
7643
7643
of the [=union type=].
7644
- 1. If |V| is <emu-val>null</emu-val> or
7645
- <emu-val>undefined</emu-val>, then:
7644
+ 1. If |V| is <emu-val>null</emu-val> or <emu-val>undefined</emu-val>, then:
7646
7645
1. If |types| includes a [=dictionary type=], then return the
7647
7646
result of [=converted to an IDL value|converting=] |V| to that dictionary type.
7648
7647
1. If |types| includes a [=record type=], then return the
@@ -7659,25 +7658,25 @@ that correspond to the union’s [=member types=].
7659
7658
|V| to that type.
7660
7659
1. If |types| includes {{object}}, then return the IDL value
7661
7660
that is a reference to the object |V|.
7662
- 1. If |V| is a native <emu-val>Error</emu-val> object (that is, it has an \[[ErrorData]] [=internal slot=]), then:
7661
+ 1. If [=Type=]( |V|) is Object and |V| has an \[[ErrorData]] [=internal slot=]), then:
7663
7662
1. If |types| includes {{Error!!interface}}, then return the
7664
7663
result of [=converted to an IDL value|converting=]
7665
7664
|V| to {{Error!!interface}}.
7666
7665
1. If |types| includes {{object}}, then return the IDL value
7667
7666
that is a reference to the object |V|.
7668
- 1. If |V| is an object with an \[[ArrayBufferData]] [=internal slot=], then:
7667
+ 1. If [=Type=]( |V|) is Object and |V| has an \[[ArrayBufferData]] [=internal slot=], then:
7669
7668
1. If |types| includes {{ArrayBuffer}}, then return the
7670
7669
result of [=converted to an IDL value|converting=]
7671
7670
|V| to {{ArrayBuffer}}.
7672
7671
1. If |types| includes {{object}}, then return the IDL value
7673
7672
that is a reference to the object |V|.
7674
- 1. If |V| is an object with a \[[DataView]] [=internal slot=], then:
7673
+ 1. If [=Type=]( |V|) is Object and |V| has a \[[DataView]] [=internal slot=], then:
7675
7674
1. If |types| includes {{DataView}}, then return the
7676
7675
result of [=converted to an IDL value|converting=]
7677
7676
|V| to {{DataView}}.
7678
7677
1. If |types| includes {{object}}, then return the IDL value
7679
7678
that is a reference to the object |V|.
7680
- 1. If |V| is an object with a \[[TypedArrayName]] [=internal slot=], then:
7679
+ 1. If [=Type=]( |V|) is Object and |V| has a \[[TypedArrayName]] [=internal slot=], then:
7681
7680
1. If |types| includes a [=typed array type=]
7682
7681
whose name is the value of |V|’s \[[TypedArrayName]] [=internal slot=], then return the
7683
7682
result of [=converted to an IDL value|converting=]
@@ -7691,24 +7690,22 @@ that correspond to the union’s [=member types=].
7691
7690
|V| to that callback function type.
7692
7691
1. If |types| includes {{object}}, then return the IDL value
7693
7692
that is a reference to the object |V|.
7694
- 1. If |V| is any kind of object , then:
7693
+ 1. If [=Type=]( |V|) is Object , then:
7695
7694
1. If |types| includes a [=sequence type=], then
7696
7695
1. Let |method| be the result of
7697
7696
[=GetMethod=](|V|, [=@@iterator=]).
7698
7697
1. [=ReturnIfAbrupt=](|method|).
7699
- 1. If |method| is not
7700
- <emu-val>undefined</emu-val>,
7698
+ 1. If |method| is not <emu-val>undefined</emu-val>,
7701
7699
return the result of
7702
7700
[=creating a sequence from an iterable|creating a sequence=]
7703
7701
of that type from |V| and |method|.
7704
7702
1. If |types| includes a [=frozen array type=], then
7705
- 1. Let |method| be the result of
7706
- [=GetMethod=](|V|, [=@@iterator=]).
7703
+ 1. Let |method| be the result of [=GetMethod=](|V|, [=@@iterator=]).
7707
7704
1. [=ReturnIfAbrupt=](|method|).
7708
- 1. If |method| is not
7709
- <emu-val>undefined</emu-val>,
7705
+ 1. If |method| is not <emu-val>undefined</emu-val>,
7710
7706
return the result of
7711
- [=Creating a frozen array from an iterable|creating a frozen array of that type from V and method=].
7707
+ [=Creating a frozen array from an iterable|creating a frozen array=]
7708
+ of that type from |V| and |method|.
7712
7709
1. If |types| includes a [=dictionary type=], then return the
7713
7710
result of [=converted to an IDL value|converting=]
7714
7711
|V| to that dictionary type.
@@ -7721,11 +7718,11 @@ that correspond to the union’s [=member types=].
7721
7718
|V| to that interface type.
7722
7719
1. If |types| includes {{object}}, then return the IDL value
7723
7720
that is a reference to the object |V|.
7724
- 1. If |V| is a <emu-val> Boolean</emu-val> value , then:
7721
+ 1. If [=Type=]( |V|) is Boolean, then:
7725
7722
1. If |types| includes a {{boolean}},
7726
7723
then return the result of [=converted to an IDL value|converting=]
7727
7724
|V| to {{boolean}}.
7728
- 1. If |V| is a <emu-val> Number</emu-val> value , then:
7725
+ 1. If [=Type=]( |V|) is Number, then:
7729
7726
1. If |types| includes a [=numeric type=],
7730
7727
then return the result of [=converted to an IDL value|converting=]
7731
7728
|V| to that [=numeric type=].
@@ -9802,7 +9799,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
9802
9799
9803
9800
then remove from |S| all other entries.
9804
9801
9805
- 1. Otherwise: if |V| is an <emu-val>Error</emu-val> object (that is, it has an \[[ErrorData]] [=internal slot=]) and
9802
+ 1. Otherwise: if [=Type=]( |V|) is Object, |V| has an \[[ErrorData]] [=internal slot=], and
9806
9803
there is an entry in |S| that has one of the following types at position |i| of its type list,
9807
9804
* {{Error!!interface}}
9808
9805
* {{object}}
@@ -9812,7 +9809,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
9812
9809
9813
9810
then remove from |S| all other entries.
9814
9811
9815
- 1. Otherwise: if |V| is an object with an \[[ArrayBufferData]] [=internal slot=] and
9812
+ 1. Otherwise: if [=Type=]( |V|) is Object, |V| has an \[[ArrayBufferData]] [=internal slot=], and
9816
9813
there is an entry in |S| that has one of the following types at position |i| of its type list,
9817
9814
* {{ArrayBuffer}}
9818
9815
* {{object}}
@@ -9822,7 +9819,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
9822
9819
9823
9820
then remove from |S| all other entries.
9824
9821
9825
- 1. Otherwise: if |V| is an object with a \[[DataView]] [=internal slot=] and
9822
+ 1. Otherwise: if [=Type=]( |V|) is Object, |V| has a \[[DataView]] [=internal slot=], and
9826
9823
there is an entry in |S| that has one of the following types at position |i| of its type list,
9827
9824
* {{DataView}}
9828
9825
* {{object}}
@@ -9832,7 +9829,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
9832
9829
9833
9830
then remove from |S| all other entries.
9834
9831
9835
- 1. Otherwise: if |V| is an object with a \[[TypedArrayName]] [=internal slot=] and
9832
+ 1. Otherwise: if [=Type=]( |V|) is Object, |V| has a \[[TypedArrayName]] [=internal slot=], and
9836
9833
there is an entry in |S| that has one of the following types at position |i| of its type list,
9837
9834
* a [=typed array type=] whose name
9838
9835
is equal to the value of |V|’s \[[TypedArrayName]] [=internal slot=]
@@ -9853,7 +9850,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
9853
9850
9854
9851
then remove from |S| all other entries.
9855
9852
9856
- 1. Otherwise: if |V| is any kind of object, and
9853
+ 1. Otherwise: if [=Type=]( |V|) is Object and
9857
9854
there is an entry in |S| that has one of the
9858
9855
following types at position |i| of its type list,
9859
9856
* a [=sequence type=]
@@ -9871,7 +9868,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
9871
9868
|method| is not <emu-val>undefined</emu-val>, then remove from |S| all
9872
9869
other entries.
9873
9870
9874
- 1. Otherwise: if |V| is any kind of object, and
9871
+ 1. Otherwise: if [=Type=]( |V|) is Object and
9875
9872
there is an entry in |S| that has one of the following types at position |i| of its type list,
9876
9873
* a [=callback interface=] type
9877
9874
* a [=dictionary type=]
@@ -9883,7 +9880,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
9883
9880
9884
9881
then remove from |S| all other entries.
9885
9882
9886
- 1. Otherwise: if |V| is a <emu-val> Boolean</emu-val> value,
9883
+ 1. Otherwise: if [=Type=]( |V|) is Boolean
9887
9884
and there is an entry in |S| that has one of the following types at position |i| of its type list,
9888
9885
* {{boolean}}
9889
9886
* a [=nullable type|nullable=] {{boolean}}
@@ -9892,7 +9889,7 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
9892
9889
9893
9890
then remove from |S| all other entries.
9894
9891
9895
- 1. Otherwise: if |V| is a <emu-val> Number</emu-val> value,
9892
+ 1. Otherwise: if [=Type=]( |V|) is Number
9896
9893
and there is an entry in |S| that has one of the following types at position |i| of its type list,
9897
9894
* a [=numeric type=]
9898
9895
* a [=nullable type|nullable=] [=numeric type=]
0 commit comments