Skip to content

Commit d7bc9b1

Browse files
authored
Fix case of Web IDL bigint type (#92)
Introduced in #77 Per https://heycam.github.io/webidl/#idl-bigint the type is spelled "bigint". This isn't used in any other spec yet, but there are examples of this in tests: https://github.com/w3c/webidl2.js/blob/9e8b5a0247f2cffccc6265c6577f98a0883d3a60/test/syntax/idl/bigint.webidl
1 parent 566cd58 commit d7bc9b1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

index.bs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ spec:webidl; type:dfn; text:resolve
2828
<pre class=link-defaults>
2929
spec:streams; type:interface; text:ReadableStream
3030
</pre>
31-
<pre class=anchors>
32-
url: https://heycam.github.io/webidl/#idl-bigint; type: interface; text: BigInt
33-
</pre>
3431

3532
# Introduction # {#introduction}
3633

@@ -195,7 +192,7 @@ dictionary SFrameTransformOptions {
195192
};
196193

197194
typedef [EnforceRange] unsigned long long SmallCryptoKeyID;
198-
typedef (SmallCryptoKeyID or BigInt) CryptoKeyID;
195+
typedef (SmallCryptoKeyID or bigint) CryptoKeyID;
199196

200197
[Exposed=(Window,DedicatedWorker)]
201198
interface SFrameTransform {
@@ -233,7 +230,7 @@ The SFrame transform algorithm, given |sframe| as a SFrameTransform object and |
233230
## Methods
234231
The <dfn method for="SFrameTransform">setEncryptionKey(|key|, |keyID|)</dfn> method steps are:
235232
1. Let |promise| be [=a new promise=].
236-
2. If |keyID| is a {{BigInt}} which cannot be represented as a integer between 0 and 2<sup>64</sup>-1 inclusive, [=reject=] |promise| with a {{RangeError}} exception.
233+
2. If |keyID| is a {{bigint}} which cannot be represented as a integer between 0 and 2<sup>64</sup>-1 inclusive, [=reject=] |promise| with a {{RangeError}} exception.
237234
3. Otherwise, [=in parallel=], run the following steps:
238235
1. Set |key| with its optional |keyID| as key material to use for the SFrame transform algorithm, as defined by the <a href="https://datatracker.ietf.org/doc/draft-omara-sframe/">SFrame specification</a>.
239236
2. If setting the key material fails, [=reject=] |promise| with an {{InvalidModificationError}} exception and abort these steps.

0 commit comments

Comments
 (0)