Skip to content

Commit 8ca11a5

Browse files
committed
Also match bool and externref
1 parent 2b16d3d commit 8ca11a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/asbind-instance/type-converters.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export const converters = new Map([
9191
// Technically this matches types that don’ exist (like f8),
9292
// but since those can only appear if the compiler accepts them,
9393
// it seems unlikely for that to be a problem.
94-
[/^(i|u|f)(8|16|32|64)$/, { ascToJs: nop, jsToAsc: nop }],
94+
[
95+
/^(i|u|f)(8|16|32|64)|[ui]size|bool|externref$/,
96+
{ ascToJs: nop, jsToAsc: nop }
97+
],
9598
["~lib/string/String", { ascToJs: getString, jsToAsc: putString }],
9699
[
97100
"~lib/typedarray/Int8Array",

0 commit comments

Comments
 (0)