ericwindmill 4 weeks ago
parent 9b234ec544
commit bb341cee6b

File diff suppressed because one or more lines are too long

@ -7,15 +7,41 @@
// affect chrome.
(async () => {
// Fetch and compile Wasm binary.
let data = document.getElementById('WasmBootstrapInfo').dataset;
let modulePromise = WebAssembly.compileStreaming(fetch(data.wasmurl));
let data = document.getElementById("WasmBootstrapInfo").dataset;
// Instantiate the Dart module, importing from the global scope.
let dart2wasm = await import('./' + data.jsruntimeurl);
let dartInstance = await dart2wasm.instantiate(modulePromise, {});
let dart2wasmJsRuntime = await import("./" + data.jsruntimeurl);
// Support three versions of dart2wasm:
//
// (1) Versions before 3.6.0-167.0.dev require the user to compile using the
// browser's `WebAssembly` API, the compiled module needs to be instantiated
// using the JS runtime.
//
// (2) Versions starting with 3.6.0-167.0.dev added helpers for compiling and
// instantiating.
//
// (3) Versions starting with 3.6.0-212.0.dev made compilation functions
// return a new type that comes with instantiation and invoke methods.
// Call `main`. If tasks are placed into the event loop (by scheduling tasks
// explicitly or awaiting Futures), these will automatically keep the script
// alive even after `main` returns.
await dart2wasm.invoke(dartInstance);
if (dart2wasmJsRuntime.compileStreaming !== undefined) {
// Version (2) or (3).
let compiledModule = await dart2wasmJsRuntime.compileStreaming(
fetch(data.wasmurl),
);
if (compiledModule.instantiate !== undefined) {
// Version (3).
let instantiatedModule = await compiledModule.instantiate();
instantiatedModule.invokeMain();
} else {
// Version (2).
let dartInstance = await dart2wasmJsRuntime.instantiate(compiledModule, {});
await dart2wasmJsRuntime.invoke(dartInstance);
}
} else {
// Version (1).
let modulePromise = WebAssembly.compileStreaming(fetch(data.wasmurl));
let dartInstance = await dart2wasmJsRuntime.instantiate(modulePromise, {});
await dart2wasmJsRuntime.invoke(dartInstance);
}
})();

File diff suppressed because one or more lines are too long

@ -33720,35 +33720,6 @@ freely, subject to the following restrictions:
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
--------------------------------------------------------------------------------
visibility_detector
Copyright 2018 the Dart project authors, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
vm_service

@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"a18df97ca57a249df5d8d68cd0820600223ce2
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "802451717"
serviceWorkerVersion: "2906544590"
}
});

@ -12,7 +12,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"assets/assets/eat_cape_town_sm.jpg": "7d0bc0ee785a2c3cc4064fae0834fadf",
"assets/assets/eat_new_orleans_sm.jpg": "75ea180c478714d6fde3d89ac35de62a",
"assets/assets/eat_sydney_sm.jpg": "3804fd7d8268200b04ef598820712ec9",
"assets/NOTICES": "51c3f704deeb453f866075ab85d3dd1f",
"assets/NOTICES": "bdaf258bdef94870ccfda648240cb978",
"assets/shaders/ink_sparkle.frag": "ecc85a2e95f5e9f53123dcaf8cb9b6ce",
"assets/AssetManifest.json": "b1c84506c7771ff360bf77a996e7730f",
"assets/AssetManifest.bin.json": "e268e4015ef09af49a14143976ccf7df",
@ -35,7 +35,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"version.json": "42906adb43c8fac5e6348de24f5c28d0",
"flutter_bootstrap.js": "4427b64cd6ed35fe97ede6fd816a822a"};
"flutter_bootstrap.js": "b5f00e9d55fdf94ecf37d9a9ede25400"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",

@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"a18df97ca57a249df5d8d68cd0820600223ce2
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "851629802"
serviceWorkerVersion: "173876499"
}
});

@ -4,7 +4,7 @@ const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"main.dart.js": "95eb51c328b5b0aaaa9a6d529b5cab8d",
"main.dart.js": "51952f49af616b764582a8cdf08c2c74",
"assets/FontManifest.json": "dc3d03800ccca4601324923c0b1d6d57",
"assets/AssetManifest.bin": "693635b5258fe5f1cda720cf224f158c",
"assets/fonts/MaterialIcons-Regular.otf": "0db35ae7a415370b89e807027510caf0",
@ -32,7 +32,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"version.json": "08c8c94a1f10fbdfa4e8389d31bd1ed8",
"flutter_bootstrap.js": "5e64ac69e7b4c27147aae53802909a89"};
"flutter_bootstrap.js": "5909f00955bb0a71d531d69de215b0c2"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",

File diff suppressed because one or more lines are too long

@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"a18df97ca57a249df5d8d68cd0820600223ce2
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "1348274751"
serviceWorkerVersion: "3331980196"
}
});

@ -77,7 +77,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"version.json": "4af817f8de4133edacca0908f16858d5",
"flutter_bootstrap.js": "8eb0548ff6326b2f7b86745566a51d06"};
"flutter_bootstrap.js": "187e7c822d2708f6d01181805fc40042"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",

@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"a18df97ca57a249df5d8d68cd0820600223ce2
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "2972874422"
serviceWorkerVersion: "1692192559"
}
});

@ -32,7 +32,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"version.json": "f18d220f770434409d5d68bddf9bd1af",
"flutter_bootstrap.js": "3e00364482224cd5a942a1ef48199613"};
"flutter_bootstrap.js": "92e33e7949493a457d7d5cd786db45b4"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",

@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"a18df97ca57a249df5d8d68cd0820600223ce2
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "430379668"
serviceWorkerVersion: "2153370922"
}
});

@ -32,7 +32,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"version.json": "9c336dc978923faadf6aa0ad75d0ea12",
"flutter_bootstrap.js": "d29e86461a15bb12dcb419b4bb67d62d"};
"flutter_bootstrap.js": "fa8287d95558e021c211d6675eb053c8"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",

@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"a18df97ca57a249df5d8d68cd0820600223ce2
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "1928566942"
serviceWorkerVersion: "2383299962"
}
});

@ -36,7 +36,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"version.json": "d8b1411a8d58c36c6abe2f9380d1c88d",
"flutter_bootstrap.js": "22aeddeff8a29f0bad7f9b65f105ac32"};
"flutter_bootstrap.js": "c866718f9a3ddff21d599d7080435482"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",

@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"a18df97ca57a249df5d8d68cd0820600223ce2
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "1183051338"
serviceWorkerVersion: "842627905"
}
});

@ -32,7 +32,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"version.json": "c877dd821e537c427c816dfd698efafd",
"flutter_bootstrap.js": "d367f884c861a4e2b7b6875b2d167c37"};
"flutter_bootstrap.js": "d73d722e7146f905c47289b9b360cb90"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",

@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"a18df97ca57a249df5d8d68cd0820600223ce2
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "3984522765"
serviceWorkerVersion: "436703886"
}
});

@ -32,7 +32,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"version.json": "5f28b101a23cda222084598333ffdc2e",
"flutter_bootstrap.js": "52a98f3c7d8fe23d5e3510862df63669"};
"flutter_bootstrap.js": "b00924ea515572521cdecba65526cf46"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",

@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"a18df97ca57a249df5d8d68cd0820600223ce2
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "3793312715"
serviceWorkerVersion: "1072439366"
}
});

@ -4,7 +4,7 @@ const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"main.dart.js": "b1fb1eb5a526f651de4eaff954c61bfb",
"main.dart.js": "6b22749b6a1630162cbfae2c14dfabb7",
"firebase_init.js": "622b108cf1fb4d6527c998381e317752",
"assets/FontManifest.json": "dc3d03800ccca4601324923c0b1d6d57",
"assets/AssetManifest.bin": "693635b5258fe5f1cda720cf224f158c",
@ -30,7 +30,7 @@ const RESOURCES = {"flutter.js": "f393d3c16b631f36852323de8e583132",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-512.png": "96e752610906ba2a93c65f8abe1645f1",
"version.json": "ec6a4d1e9d6a65953ce1a6b4ea1041ee",
"flutter_bootstrap.js": "fefee24a201091a7fcee2a8d5904aa9c"};
"flutter_bootstrap.js": "02a283014d9d2f217ef6a5de2d5d4cc3"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save