fix meriyah crash

This commit is contained in:
velzie 2024-07-14 16:30:56 -04:00
parent 37b268bfeb
commit c703ed39ca
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
4 changed files with 31 additions and 17 deletions

View file

@ -1,3 +1,4 @@
import { URL } from "../../client/url";
import { rewriteJs } from "./js";
function canParseUrl(url: string, origin?: URL) {
@ -42,4 +43,4 @@ export function decodeUrl(url: string | URL) {
} else {
return url;
}
}
}