Skip to content

Commit

Permalink
Support Function in IdlArray.prototype.assert_type_is (#23399)
Browse files Browse the repository at this point in the history
Closes #23329
  • Loading branch information
stephenmcgruer authored May 5, 2020
1 parent 100d85c commit 550e0b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/idlharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,7 @@ IdlArray.prototype.assert_type_is = function(value, type)
case "Float64Array":
case "ArrayBuffer":
case "DataView":
case "Function":
assert_true(value instanceof self[type], "wrong type: not a " + type);
return;

Expand Down

0 comments on commit 550e0b3

Please sign in to comment.