Skip to content

Commit f98a84a

Browse files
mkustermannCommit Queue
authored and
Commit Queue
committed
[dart2wasm] Remove deprecated mjs API functions
Flutter has been migrated off those functions in [0] [0] flutter/engine@6c5895a Change-Id: I88cbda1c13bd9723c514f48a5af58a65411e4e14 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/385020 Reviewed-by: Ömer Ağacan <[email protected]> Commit-Queue: Martin Kustermann <[email protected]>
1 parent 34fa3c1 commit f98a84a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

pkg/dart2wasm/lib/js/runtime_blob.dart

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,6 @@ export async function compile(bytes) {
3434
return new CompiledApp(await WebAssembly.compile(bytes, builtins), builtins);
3535
}
3636
37-
// DEPRECATED: Please use `compile` or `compileStreaming` to get a compiled app,
38-
// use `instantiate` method to get an instantiated app and then call
39-
// `invokeMain` to invoke the main function.
40-
export async function instantiate(modulePromise, importObjectPromise) {
41-
var moduleOrCompiledApp = await modulePromise;
42-
if (!(moduleOrCompiledApp instanceof CompiledApp)) {
43-
moduleOrCompiledApp = new CompiledApp(moduleOrCompiledApp);
44-
}
45-
const instantiatedApp = await moduleOrCompiledApp.instantiate(await importObjectPromise);
46-
return instantiatedApp.instantiatedModule;
47-
}
48-
49-
// DEPRECATED: Please use `compile` or `compileStreaming` to get a compiled app,
50-
// use `instantiate` method to get an instantiated app and then call
51-
// `invokeMain` to invoke the main function.
52-
export const invoke = (moduleInstance, ...args) => {
53-
moduleInstance.exports.$invokeMain(args);
54-
}
55-
5637
class CompiledApp {
5738
constructor(module, builtins) {
5839
this.module = module;

0 commit comments

Comments
 (0)