We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9874c9f commit 60a3bdfCopy full SHA for 60a3bdf
src/lib/libaddfunction.js
@@ -51,7 +51,10 @@ addToLibrary({
51
},
52
#endif
53
$wasmTypeCodes__internal: true,
54
- $wasmTypeCodes: {
+ // Note: using template literal here instead of plain object
55
+ // because jsify serializes objects w/o quotes and Closure will then
56
+ // incorrectly mangle the properties.
57
+ $wasmTypeCodes: `{
58
'i': 0x7f, // i32
59
#if MEMORY64
60
'p': 0x7e, // i64
@@ -62,7 +65,7 @@ addToLibrary({
62
65
'f': 0x7d, // f32
63
66
'd': 0x7c, // f64
64
67
'e': 0x6f, // externref
- },
68
+ }`,
69
70
$generateTypePack__internal: true,
71
$generateTypePack__deps: ['$uleb128EncodeWithLen', '$wasmTypeCodes'],
0 commit comments