Set Response.type to basic on same-origin requests

This commit is contained in:
Karl Seguin
2025-09-23 11:35:51 +08:00
parent db166b4633
commit 6bad2b16e4
3 changed files with 32 additions and 4 deletions

View File

@@ -95,7 +95,9 @@
async function async(promise, cb) {
const script_id = document.currentScript.id;
const stack = new Error().stack;
this._captured = {script_id: script_id, stack: stack};
const value = await promise;
// reset it, because await promise could change it.
this._captured = {script_id: script_id, stack: stack};
cb(value);
this._captured = null;