File tree 1 file changed +0
-19
lines changed 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -34,25 +34,6 @@ export async function compile(bytes) {
34
34
return new CompiledApp(await WebAssembly.compile(bytes, builtins), builtins);
35
35
}
36
36
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
-
56
37
class CompiledApp {
57
38
constructor(module, builtins) {
58
39
this.module = module;
You can’t perform that action at this time.
0 commit comments