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