Sign in
webkit
/
WebKit
/
8f12c50ce7316945c59c03fc3896dd540b0f8624
/
.
/
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
);
};
})();