test(webworker): keep bundle transport on host face

This commit is contained in:
imccyu 2026-08-24 23:42:40 +08:00
parent 075a46cdec
commit 60089680f9

View file

@ -36,12 +36,12 @@ it('loads a combo map through the tunnel and gives the blob script a local map U
const revoked: string[] = []
const NativeURL = URL
class StubURL extends NativeURL {
static createObjectURL(blob: Blob): string {
static override createObjectURL(blob: Blob): string {
blobs.push(blob)
return `blob:fixture-${String(blobs.length)}`
}
static revokeObjectURL(url: string): void {
static override revokeObjectURL(url: string): void {
revoked.push(url)
}
}