Skip to content

Commit 83fffdb

Browse files
authored
feat: add Float16Array (#777)
1 parent 1022793 commit 83fffdb

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

lib/tokeniser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const typeNameKeywords = [
2929
"Uint8ClampedArray",
3030
"BigInt64Array",
3131
"BigUint64Array",
32+
"Float16Array",
3233
"Float32Array",
3334
"Float64Array",
3435
"any",

test/syntax/baseline/buffersource.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,38 @@
324324
"extAttrs": [],
325325
"special": ""
326326
},
327+
{
328+
"type": "operation",
329+
"name": "add",
330+
"idlType": {
331+
"type": "return-type",
332+
"extAttrs": [],
333+
"generic": "",
334+
"nullable": false,
335+
"union": false,
336+
"idlType": "undefined"
337+
},
338+
"arguments": [
339+
{
340+
"type": "argument",
341+
"name": "array",
342+
"extAttrs": [],
343+
"idlType": {
344+
"type": "argument-type",
345+
"extAttrs": [],
346+
"generic": "",
347+
"nullable": false,
348+
"union": false,
349+
"idlType": "Float16Array"
350+
},
351+
"default": null,
352+
"optional": false,
353+
"variadic": false
354+
}
355+
],
356+
"extAttrs": [],
357+
"special": ""
358+
},
327359
{
328360
"type": "operation",
329361
"name": "add",

test/syntax/idl/buffersource.webidl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface Buffer {
1010
undefined add(Uint8ClampedArray array);
1111
undefined add(BigInt64Array array);
1212
undefined add(BigUint64Array array);
13+
undefined add(Float16Array array);
1314
undefined add(Float32Array array);
1415
undefined add(Float64Array array);
1516

0 commit comments

Comments
 (0)