fix(op_crates/web): Use "deno:" URLs for internal script specifiers (#7383)

This commit is contained in:
Nayeem Rahman 2020-09-09 13:23:57 +01:00 committed by GitHub
parent c14436a424
commit b17a5fbcfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 73 additions and 29 deletions

View file

@ -240,7 +240,7 @@
});
for (const callSite of mappedCallSites) {
error.__callSiteEvals.push(Object.freeze(evaluateCallSite(callSite)));
const isInternal = callSite.getFileName()?.startsWith("$deno$") ?? false;
const isInternal = callSite.getFileName()?.startsWith("deno:") ?? false;
error.__formattedFrames.push(callSiteToString(callSite, isInternal));
}
Object.freeze(error.__callSiteEvals);