mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
Merge pull request #1079 from lightpanda-io/dynamic_import_caching
Dynamic import caching
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user