Skip to content

Commit c2da35c

Browse files
committed
Add bigint as a known Web IDL type
Also patch the IDL where it was found.
1 parent 88de2cf commit c2da35c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From f92496af49b2aaca2a79d150ee6fa4f583ab32a1 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= <philip@foolip.org>
3+
Date: Tue, 23 Mar 2021 09:33:49 +0100
4+
Subject: [PATCH] Fix webrtc-encoded-transform.idl
5+
6+
https://github.com/w3c/webrtc-encoded-transform/pull/92
7+
---
8+
ed/idl/webrtc-encoded-transform.idl | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/ed/idl/webrtc-encoded-transform.idl b/ed/idl/webrtc-encoded-transform.idl
12+
index 0c491f416..f66cad58f 100644
13+
--- a/ed/idl/webrtc-encoded-transform.idl
14+
+++ b/ed/idl/webrtc-encoded-transform.idl
15+
@@ -37,7 +37,7 @@ dictionary SFrameTransformOptions {
16+
};
17+
18+
typedef [EnforceRange] unsigned long long SmallCryptoKeyID;
19+
-typedef (SmallCryptoKeyID or BigInt) CryptoKeyID;
20+
+typedef (SmallCryptoKeyID or bigint) CryptoKeyID;
21+
22+
[Exposed=(Window,DedicatedWorker)]
23+
interface SFrameTransform {
24+
--
25+
2.31.0.rc2.261.g7f71774620-goog
26+

test/idl/consistency.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ describe('Web IDL consistency', () => {
211211
// Types defined by Web IDL itself:
212212
'any', // https://heycam.github.io/webidl/#idl-any
213213
'ArrayBuffer', // https://heycam.github.io/webidl/#idl-ArrayBuffer
214+
'bigint', // https://heycam.github.io/webidl/#idl-bigint
214215
'boolean', // https://heycam.github.io/webidl/#idl-boolean
215216
'byte', // https://heycam.github.io/webidl/#idl-byte
216217
'ByteString', // https://heycam.github.io/webidl/#idl-ByteString

0 commit comments

Comments
 (0)