Skip to content

Commit abc4414

Browse files
Replace IsResizableArrayBuffer with IsFixedLengthArrayBuffer
As part of tc39/ecma262#3116, the IsResizableArrayBuffer abstract operation was negated and replaced with IsFixedLengthArrayBuffer. Update Web IDL to use the new standardized, referencing the main JavaScript specification instead of the proposal. Fixes #1520.
1 parent 278f0bd commit abc4414

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

index.bs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ urlPrefix: https://tc39.es/ecma262/; spec: ecmascript
9191
url: sec-object-type
9292
text: is an Object
9393
text: is not an Object
94-
urlPrefix: https://tc39.es/proposal-resizablearraybuffer/; spec: RESIZABLE-BUFFERS-PROPOSAL
95-
type: abstract-op
96-
text: IsResizableArrayBuffer; url: sec-isresizablearraybuffer
9794
</pre>
9895

9996
<pre class=biblio>
@@ -9111,13 +9108,13 @@ that correspond to the union's [=member types=].
91119108
A value of an IDL {{ArrayBuffer}} is represented by an object of the corresponding JavaScript class.
91129109
If it is not [=extended attributes associated with|associated with=] the [{{AllowResizable}}]
91139110
[=extended attribute=], it can only be backed by JavaScript <l spec=ecmascript>{{ArrayBuffer}}</l>
9114-
objects |V| for which <a abstract-op>IsResizableArrayBuffer</a>(|V|) is false.
9111+
objects |V| for which <a abstract-op>IsFixedLengthArrayBuffer</a>(|V|) is true.
91159112

91169113
A value of an IDL {{SharedArrayBuffer}} is represented by an object of the corresponding JavaScript
91179114
class. If it is not [=extended attributes associated with|associated with=] the [{{AllowResizable}}]
91189115
[=extended attribute=], it can only be backed by JavaScript
91199116
<l spec=ecmascript>{{SharedArrayBuffer}}</l> objects |V| for which
9120-
<a abstract-op>IsResizableArrayBuffer</a>(|V|) is false.
9117+
<a abstract-op>IsFixedLengthArrayBuffer</a>(|V|) is true.
91219118

91229119
Values of the IDL [=buffer view types=] are represented by objects of the corresponding JavaScript
91239120
class, with the following additional restrictions on those objects.
@@ -9127,7 +9124,7 @@ class, with the following additional restrictions on those objects.
91279124
If the type is not [=extended attributes associated with|associated with=] either the
91289125
[{{AllowResizable}}] or [{{AllowShared}}] [=extended attribute=], if applicable, they can
91299126
only be backed by JavaScript <l spec=ecmascript>{{ArrayBuffer}}</l> objects |V| for which <a
9130-
abstract-op>IsResizableArrayBuffer</a>(|V|) is false.
9127+
abstract-op>IsFixedLengthArrayBuffer</a>(|V|) is true.
91319128
</li>
91329129
<li>
91339130
If the type is [=extended attributes associated with|associated with=] the
@@ -9140,7 +9137,7 @@ class, with the following additional restrictions on those objects.
91409137
[=extended attribute=] but not with the [{{AllowResizable}}] [=extended attribute=], they
91419138
can only be backed by JavaScript <l spec=ecmascript>{{ArrayBuffer}}</l> and
91429139
<l spec=ecmascript>{{SharedArrayBuffer}}</l> objects |V| for which
9143-
<a abstract-op>IsResizableArrayBuffer</a>(|V|) is false.
9140+
<a abstract-op>IsFixedLengthArrayBuffer</a>(|V|) is true.
91449141
</li>
91459142
<li>
91469143
If the type is [=extended attributes associated with|associated with=] both the
@@ -9163,7 +9160,7 @@ class, with the following additional restrictions on those objects.
91639160
a <l spec=ecmascript>{{TypeError}}</l>.
91649161
1. If the conversion is not to an IDL type
91659162
[=extended attributes associated with|associated with=] the [{{AllowResizable}}]
9166-
[=extended attribute=], and <a abstract-op>IsResizableArrayBuffer</a>(|V|) is true,
9163+
[=extended attribute=], and <a abstract-op>IsFixedLengthArrayBuffer</a>(|V|) is false,
91679164
then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
91689165
1. Return the IDL {{ArrayBuffer}} value that is a reference
91699166
to the same object as |V|.
@@ -9181,7 +9178,7 @@ class, with the following additional restrictions on those objects.
91819178
a <l spec=ecmascript>{{TypeError}}</l>.
91829179
1. If the conversion is not to an IDL type
91839180
[=extended attributes associated with|associated with=] the [{{AllowResizable}}]
9184-
[=extended attribute=], and <a abstract-op>IsResizableArrayBuffer</a>(|V|) is true,
9181+
[=extended attribute=], and <a abstract-op>IsFixedLengthArrayBuffer</a>(|V|) is false,
91859182
then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
91869183
1. Return the IDL {{SharedArrayBuffer}} value that is a reference
91879184
to the same object as |V|.
@@ -9201,7 +9198,7 @@ class, with the following additional restrictions on those objects.
92019198
then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
92029199
1. If the conversion is not to an IDL type
92039200
[=extended attributes associated with|associated with=] the [{{AllowResizable}}]
9204-
[=extended attribute=], and <a abstract-op>IsResizableArrayBuffer</a>(|V|.\[[ViewedArrayBuffer]]) is true,
9201+
[=extended attribute=], and <a abstract-op>IsFixedLengthArrayBuffer</a>(|V|.\[[ViewedArrayBuffer]]) is false,
92059202
then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
92069203
1. Return the IDL {{DataView}} value that is a reference
92079204
to the same object as |V|.
@@ -9236,7 +9233,7 @@ class, with the following additional restrictions on those objects.
92369233
then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
92379234
1. If the conversion is not to an IDL type
92389235
[=extended attributes associated with|associated with=] the [{{AllowResizable}}]
9239-
[=extended attribute=], and <a abstract-op>IsResizableArrayBuffer</a>(|V|.\[[ViewedArrayBuffer]]) is true,
9236+
[=extended attribute=], and <a abstract-op>IsFixedLengthArrayBuffer</a>(|V|.\[[ViewedArrayBuffer]]) is false,
92409237
then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
92419238
1. Return the IDL value of type |T| that is a reference to the same object as |V|.
92429239
</div>

0 commit comments

Comments
 (0)