diff options
Diffstat (limited to 'testing/web-platform/tests/workers/semantics/multiple-workers/008.js')
-rw-r--r-- | testing/web-platform/tests/workers/semantics/multiple-workers/008.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/semantics/multiple-workers/008.js b/testing/web-platform/tests/workers/semantics/multiple-workers/008.js new file mode 100644 index 0000000000..92593ebb86 --- /dev/null +++ b/testing/web-platform/tests/workers/semantics/multiple-workers/008.js @@ -0,0 +1,6 @@ +var channel = new MessageChannel(); +var i = 0; +onconnect = function(e) { + i++; + e.ports[0].postMessage(1, [channel['port' + i]]); +}
\ No newline at end of file |