mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Update the wasm bootstrap to allow access to the emscripten wrapper to skwasm. (#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 https://github.com/flutter/engine/pull/46388
This commit is contained in:
parent
ba1416954a
commit
0f947a09ed
@ -46,7 +46,8 @@ String generateImports(bool isSkwasm) {
|
||||
const skwasmInstance = await skwasm();
|
||||
window._flutter_skwasmInstance = skwasmInstance;
|
||||
resolve({
|
||||
'skwasm': skwasmInstance.asm ?? skwasmInstance.wasmExports,
|
||||
'skwasm': skwasmInstance.wasmExports,
|
||||
'skwasmWrapper': skwasmInstance,
|
||||
'ffi': {
|
||||
'memory': skwasmInstance.wasmMemory,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user