Is it save to rely on the order of messages passed from the main thread to a single Web Worker being retained? For instance, if I do

worker.postMessage(1);
worker.postMessage(2);

will the worker certainly get to process the first message before the second one?

Edit
Report