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