Merge pull request #1079 from lightpanda-io/dynamic_import_caching

Dynamic import caching
This commit is contained in:
Karl Seguin
2025-09-24 09:23:16 +08:00
committed by GitHub
8 changed files with 204 additions and 201 deletions

View File

@@ -93,7 +93,7 @@
}
async function async(promise, cb) {
const script_id = document.currentScript.id;
const script_id = document.currentScript ? document.currentScript.id : '<script id is unavailable in browsers>';
const stack = new Error().stack;
this._captured = {script_id: script_id, stack: stack};
const value = await promise;