[Wasm] JS modularization (#61313)
[platform/upstream/dotnet/runtime.git] / src / mono / sample / wasm / browser / main.js
index 9e347d4..0c865b3 100644 (file)
@@ -3,11 +3,12 @@
 
 "use strict";
 
-var Module = {
+createDotnetRuntime(({ MONO, BINDING, Module }) => ({
+    disableDotnet6Compatibility: true,
     configSrc: "./mono-config.json",
-    onDotNetReady: () => {
+    onDotnetReady: () => {
         try {
-            App.init();
+            App.init({ MONO, BINDING, Module });
         } catch (error) {
             set_exit_code(1, error);
             throw (error);
@@ -16,4 +17,4 @@ var Module = {
     onAbort: (error) => {
         set_exit_code(1, error);
     },
-};
\ No newline at end of file
+}));