Skip to content

Commit

Permalink
[idlharness] Support BigInt64Array and BigUint64Array
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss committed Mar 23, 2021
1 parent 50e1824 commit cb3ab9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/idlharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,8 @@ IdlArray.prototype.is_json_type = function(type)
case "Uint16Array":
case "Uint32Array":
case "Uint8ClampedArray":
case "BigInt64Array":
case "BigUint64Array":
case "Float32Array":
case "Float64Array":
case "ArrayBuffer":
Expand Down
3 changes: 3 additions & 0 deletions resources/test/tests/unit/IdlArray/is_json_type.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
assert_false(idl.is_json_type(typeFrom("Uint16Array")));
assert_false(idl.is_json_type(typeFrom("Uint32Array")));
assert_false(idl.is_json_type(typeFrom("Uint8ClampedArray")));
assert_false(idl.is_json_type(typeFrom("BigInt64Array")));
assert_false(idl.is_json_type(typeFrom("BigUint64Array")));
assert_false(idl.is_json_type(typeFrom("Float32Array")));
assert_false(idl.is_json_type(typeFrom("Float64Array")));
assert_false(idl.is_json_type(typeFrom("ArrayBuffer")));
assert_false(idl.is_json_type(typeFrom("DataView")));
}, 'should return false for all buffer source types');
Expand Down

0 comments on commit cb3ab9a

Please sign in to comment.