diff options
Diffstat (limited to 'dom/tests/browser/perfmetrics/shared_worker.js')
-rw-r--r-- | dom/tests/browser/perfmetrics/shared_worker.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dom/tests/browser/perfmetrics/shared_worker.js b/dom/tests/browser/perfmetrics/shared_worker.js new file mode 100644 index 0000000000..6c9ba15249 --- /dev/null +++ b/dom/tests/browser/perfmetrics/shared_worker.js @@ -0,0 +1,7 @@ +let onconnect = function(e) { + var port = e.ports[0]; + + port.onmessage = function(e) { + port.postMessage(e.data[0]); + }; +}; |