summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/common/dispatcher/executor.html
blob: 5fe6a95efaf97d82ba2d377dd1af5b2e8f54ee90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script src="./dispatcher.js"></script>
<script>

const params = new URLSearchParams(window.location.search);
const uuid = params.get('uuid');

let executeOrders = async function() {
  while(true) {
    let task = await receive(uuid);
    eval(`(async () => {${task}})()`);
  }
};
executeOrders();

</script>