introduce prettierrc formatting
This commit is contained in:
@@ -1,24 +1,27 @@
|
||||
export async function initWasm() {
|
||||
|
||||
let wasmMemory = new WebAssembly.Memory({
|
||||
initial: 256,
|
||||
maximum: 256
|
||||
maximum: 256,
|
||||
});
|
||||
|
||||
let importObject = {
|
||||
env: {
|
||||
memory: wasmMemory,
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
const response = await fetch("./main.wasm");
|
||||
const wasmModule = await WebAssembly.instantiateStreaming(response, importObject);
|
||||
const { initialisePoints, getPointOrder, memory } = wasmModule.instance.exports;
|
||||
const response = await fetch('./main.wasm');
|
||||
const wasmModule = await WebAssembly.instantiateStreaming(
|
||||
response,
|
||||
importObject
|
||||
);
|
||||
const { initialisePoints, getPointOrder, memory } =
|
||||
wasmModule.instance.exports;
|
||||
|
||||
return {
|
||||
initialisePoints,
|
||||
getPointOrder,
|
||||
memory,
|
||||
wasmMemory
|
||||
}
|
||||
wasmMemory,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user