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