Skip to content

Commit 964595a

Browse files
committed
Update
1 parent 1ecba5d commit 964595a

File tree

4 files changed

+12
-21
lines changed

4 files changed

+12
-21
lines changed

inputfiles/overridingTypes.jsonc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,18 +1400,6 @@
14001400
"SubtleCrypto": {
14011401
"methods": {
14021402
"method": {
1403-
"decrypt": {
1404-
"signature": {
1405-
"0": {
1406-
"param": [
1407-
{
1408-
"name": "algorithm",
1409-
"additionalTypes": ["RsaOaepParams", "AesCtrParams", "AesCbcParams", "AesGcmParams"]
1410-
}
1411-
]
1412-
}
1413-
}
1414-
},
14151403
"deriveBits": {
14161404
"signature": {
14171405
"0": {

inputfiles/patches/webcrypto.kdl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ interface CryptoKey {
1313
}
1414
}
1515

16+
interface SubtleCrypto {
17+
method decrypt signatureIndex=0 {
18+
param algorithm {
19+
additionalTypes RsaOaepParams AesCtrParams AesCbcParams AesGcmParams
20+
}
21+
}
22+
}
23+
1624
removals {
1725
enum KeyFormat {
1826
raw-private // No implementation as of 2025-09

inputfiles/patches/webgl.kdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ interface-mixin WebGLRenderingContextBase {
173173

174174
method pixelStorei signatureIndex=0 {
175175
param param {
176-
additionalType GLboolean
176+
additionalTypes GLboolean
177177
}
178178
}
179179
}

src/build/patches.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,12 @@ function handleTyped(type: Node): Typed {
6464
}
6565

6666
function handleAdditionalTypes(node: Node) {
67-
const additionalTypes = [];
6867
for (const child of node.children) {
69-
if (child.name === "additionalType") {
70-
additionalTypes.push(string(child.values[0]));
68+
if (child.name === "additionalTypes") {
69+
const additionalTypes = child.values.map((v) => string(v));
70+
return { additionalTypes };
7171
}
7272
}
73-
// Check if additionalTypes has elements and return array if so, otherwise undefined/empty.
74-
if (additionalTypes.length > 0) {
75-
return { additionalTypes };
76-
}
77-
return undefined;
7873
}
7974

8075
function handleTypeParameters(value: Value | Node) {

0 commit comments

Comments
 (0)