[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:
Aske Simon Christensen 2023-03-09 21:10:45 +00:00 committed by Commit Queue
parent 3f0c013779
commit c7432bf694
2 changed files with 3 additions and 0 deletions

View file

@ -42,6 +42,8 @@ const main = async () => {
return new WebAssembly.Instance(compile(filename), imports);
}
globalThis.window ??= globalThis;
let importObject = {};
// Is an FFI module specified?

View file

@ -69,6 +69,7 @@ class WasmTarget extends Target {
'dart:nativewrappers',
'dart:io',
'dart:js_interop',
'dart:js',
'dart:js_util',
'dart:wasm',
'dart:developer',