mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
This reverts commit 884143218f
.
This commit is contained in:
parent
382a978859
commit
f248e6f177
41 changed files with 658 additions and 1028 deletions
|
@ -5,7 +5,6 @@
|
|||
const core = window.Deno.core;
|
||||
const {
|
||||
Error,
|
||||
ObjectPrototypeIsPrototypeOf,
|
||||
StringPrototypeStartsWith,
|
||||
String,
|
||||
SymbolIterator,
|
||||
|
@ -17,11 +16,8 @@
|
|||
const { serializePermissions } = window.__bootstrap.permissions;
|
||||
const { log } = window.__bootstrap.util;
|
||||
const { defineEventHandler } = window.__bootstrap.event;
|
||||
const {
|
||||
deserializeJsMessageData,
|
||||
serializeJsMessageData,
|
||||
MessagePortPrototype,
|
||||
} = window.__bootstrap.messagePort;
|
||||
const { deserializeJsMessageData, serializeJsMessageData } =
|
||||
window.__bootstrap.messagePort;
|
||||
|
||||
function createWorker(
|
||||
specifier,
|
||||
|
@ -203,9 +199,7 @@
|
|||
const event = new MessageEvent("message", {
|
||||
cancelable: false,
|
||||
data: message,
|
||||
ports: transferables.filter((t) =>
|
||||
ObjectPrototypeIsPrototypeOf(MessagePortPrototype, t)
|
||||
),
|
||||
ports: transferables.filter((t) => t instanceof MessagePort),
|
||||
});
|
||||
this.dispatchEvent(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue