repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
workers
/
resources
/
shared-worker-count-connections.js
blob
371d31229321fdc26d6e63591350ead6dc88b12b
1
var ports = [];
2
onconnect = function(event) {
3
ports.push(event.ports[0]);
4
for (var i = 0 ; i < ports.length ; i++) {
5
ports[i].postMessage(ports.length);
6
}
7
};