Sign in
webkit
/
WebKit
/
51d2026f123f19fcb7f647cb9beef1a0b7f94b83
/
.
/
LayoutTests
/
workers
/
message-port-gc.js
blob: eba1435b60c16a60099a242c12d89876fdae5fdb [
file
] [
log
] [
blame
]
(
function
()
{
let
{
port1
,
port2
}
=
new
MessageChannel
();
self
.
postMessage
({
port
:
port2
},
[
port2
]);
port1
.
onmessage
=
e
=>
{
for
(
let i
=
0
;
i
<
1000
;
i
++)
new
ArrayBuffer
(
500
);
setTimeout
(()
=>
port1
.
postMessage
(
"pong"
),
50
);
};
})();