Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

105
Vistas
`postMessage` behaves differently in Chromium and Firefox

I have a piece of code that behaves differently in Chromium and Firefox.

// window.js
const worker = new Worker("worker.js", { name: "1" });

// worker.js
const worker = new Worker("worker2.js", { name: "2" });
const sab = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));

worker.postMessage(0);
Atomics.wait(sab, 0, 0);

// worker2.js
onmessage = ({ data }) => console.log(data);

In Chromium, the worker2 never receives the message because Atomics.wait blocks postMessage, but I want to send the message synchronously.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda