Skip to content

Commit

Permalink
Also match bool and externref
Browse files Browse the repository at this point in the history
  • Loading branch information
surma committed Mar 20, 2021
1 parent 2b16d3d commit 8ca11a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/asbind-instance/type-converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ export const converters = new Map([
// Technically this matches types that don’ exist (like f8),
// but since those can only appear if the compiler accepts them,
// it seems unlikely for that to be a problem.
[/^(i|u|f)(8|16|32|64)$/, { ascToJs: nop, jsToAsc: nop }],
[
/^(i|u|f)(8|16|32|64)|[ui]size|bool|externref$/,
{ ascToJs: nop, jsToAsc: nop }
],
["~lib/string/String", { ascToJs: getString, jsToAsc: putString }],
[
"~lib/typedarray/Int8Array",
Expand Down

0 comments on commit 8ca11a5

Please sign in to comment.