mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
[dart2wasm] Workarounds to compile and run flute
Change-Id: I9180a2a65d47b11ec5e13d9c003c10b428bc15fc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/287540 Commit-Queue: Aske Simon Christensen <askesc@google.com> Reviewed-by: Joshua Litt <joshualitt@google.com>
This commit is contained in:
parent
3f0c013779
commit
c7432bf694
|
@ -42,6 +42,8 @@ const main = async () => {
|
|||
return new WebAssembly.Instance(compile(filename), imports);
|
||||
}
|
||||
|
||||
globalThis.window ??= globalThis;
|
||||
|
||||
let importObject = {};
|
||||
|
||||
// Is an FFI module specified?
|
||||
|
|
|
@ -69,6 +69,7 @@ class WasmTarget extends Target {
|
|||
'dart:nativewrappers',
|
||||
'dart:io',
|
||||
'dart:js_interop',
|
||||
'dart:js',
|
||||
'dart:js_util',
|
||||
'dart:wasm',
|
||||
'dart:developer',
|
||||
|
|
Loading…
Reference in a new issue