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 64a5d69 commit c04886dCopy full SHA for c04886d
read_type_data.js
@@ -1,10 +1,29 @@
1
const fs = require("fs/promises");
2
3
+function justSatisfyAllImportsLol() {
4
+ return new Proxy(
5
+ {},
6
+ {
7
+ get(_, name) {
8
9
10
11
12
+ return () => {};
13
+ }
14
15
+ );
16
17
18
19
+}
20
+
21
async function main() {
22
const b = await fs.readFile(process.argv[2]);
- const { instance } = await WebAssembly.instantiate(b, {
- env: { abort() {} }
- });
23
+ const { instance } = await WebAssembly.instantiate(
24
+ b,
25
+ justSatisfyAllImportsLol()
26
27
const ptr = instance.exports.__asbind_type_data.value;
28
const dv = new DataView(instance.exports.memory.buffer);
29
const strLen = dv.getUint32(ptr - 4, true);
0 commit comments