PR-URL: https://github.com/nodejs/node/pull/46912 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
12 lines
276 B
JavaScript
12 lines
276 B
JavaScript
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();
|