Skip to content

Commit

Permalink
feat: add Float16Array (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Apr 8, 2024
1 parent 1022793 commit 83fffdb
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/tokeniser.js
Expand Up @@ -29,6 +29,7 @@ export const typeNameKeywords = [
"Uint8ClampedArray",
"BigInt64Array",
"BigUint64Array",
"Float16Array",
"Float32Array",
"Float64Array",
"any",
Expand Down
32 changes: 32 additions & 0 deletions test/syntax/baseline/buffersource.json
Expand Up @@ -324,6 +324,38 @@
"extAttrs": [],
"special": ""
},
{
"type": "operation",
"name": "add",
"idlType": {
"type": "return-type",
"extAttrs": [],
"generic": "",
"nullable": false,
"union": false,
"idlType": "undefined"
},
"arguments": [
{
"type": "argument",
"name": "array",
"extAttrs": [],
"idlType": {
"type": "argument-type",
"extAttrs": [],
"generic": "",
"nullable": false,
"union": false,
"idlType": "Float16Array"
},
"default": null,
"optional": false,
"variadic": false
}
],
"extAttrs": [],
"special": ""
},
{
"type": "operation",
"name": "add",
Expand Down
1 change: 1 addition & 0 deletions test/syntax/idl/buffersource.webidl
Expand Up @@ -10,6 +10,7 @@ interface Buffer {
undefined add(Uint8ClampedArray array);
undefined add(BigInt64Array array);
undefined add(BigUint64Array array);
undefined add(Float16Array array);
undefined add(Float32Array array);
undefined add(Float64Array array);

Expand Down

0 comments on commit 83fffdb

Please sign in to comment.