Merge pull request #1109 from discordeno/deploy-stack-error

fix: prevent deno deploy from crashing on stack capture #1088
This commit is contained in:
ITOH
2021-09-13 17:43:32 +02:00
committed by GitHub

View File

@@ -33,6 +33,7 @@ export async function runMethod<T = any>(
});
const errorStack = new Error("Location:");
// @ts-ignore Breaks deno deploy. Luca said add tsignore until it's fixed
Error.captureStackTrace(errorStack);
// For proxies we don't need to do any of the legwork so we just forward the request