Skip to content

Commit 0f947a0

Browse files
Update the wasm bootstrap to allow access to the emscripten wrapper to skwasm. (flutter#135723)
Some upcoming engine changes will bind to a function provided by the emscripten JS wrapper around skwasm, rather than just the wasm module itself. This will make sure not to break the benchmarks when those engine changes land. See flutter/engine#46388
1 parent ba14169 commit 0f947a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/flutter_tools/lib/src/web/file_generators/wasm_bootstrap.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ String generateImports(bool isSkwasm) {
4646
const skwasmInstance = await skwasm();
4747
window._flutter_skwasmInstance = skwasmInstance;
4848
resolve({
49-
'skwasm': skwasmInstance.asm ?? skwasmInstance.wasmExports,
49+
'skwasm': skwasmInstance.wasmExports,
50+
'skwasmWrapper': skwasmInstance,
5051
'ffi': {
5152
'memory': skwasmInstance.wasmMemory,
5253
}

0 commit comments

Comments
 (0)