diff options
Diffstat (limited to 'test/wpt/tests/common/dispatcher/executor-worker.js')
-rw-r--r-- | test/wpt/tests/common/dispatcher/executor-worker.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/wpt/tests/common/dispatcher/executor-worker.js b/test/wpt/tests/common/dispatcher/executor-worker.js new file mode 100644 index 0000000..ea065a6 --- /dev/null +++ b/test/wpt/tests/common/dispatcher/executor-worker.js @@ -0,0 +1,12 @@ +importScripts('./dispatcher.js'); + +const params = new URLSearchParams(location.search); +const uuid = params.get('uuid'); + +let executeOrders = async function() { + while(true) { + let task = await receive(uuid); + eval(`(async () => {${task}})()`); + } +}; +executeOrders(); |