L'objet Atomics fournit des opérations atomiques sous la forme de méthodes statiques. Celles-ci sont utilisées avec les objets SharedArrayBuffer.

Les opérations atomiques sont installées sur un module Atomics. À la différence des autres objets globaux, Atomics n'est pas un constructeur. Pour cette raison, il ne peut être utilisé avec l'opérateur Opérateurs/L_opérateur_new et il ne peut pas être appelé comme une fonction. Les propriétés et les méthodes d'Atomics sont statiques (Atomics fonctionne ainsi comme l'objet Math).

Propriétés

Atomics[Symbol.toStringTag]

La valeur de cette propriété vaut "Atomics".

Méthodes

Opérations atomiques

Lorsque la mémoire est partagée, plusieurs threads peuvent lire et écrire sur les mêmes données en mémoire. Les opérations atomiques permettent de s'assurer que des valeurs prévisibles sont écrites et lues, que les opérations sont finies avant que la prochaine débute et que les opérations ne sont pas interrompues.

Atomics.add()
Cette méthode ajoute la valeur fournie à la position indiquée dans le tableau. Elle renvoie l'ancienne valeur qui était à cette position.
Atomics.and()
Cette méthode calcule un ET binaire sur la position indiquée dans le tableau. Elle renvoie l'ancienne valeur qui était à cette position.
Atomics.compareExchange()
Cette méthode stocke la valeur fournie à la position indiquée dans le tableau si elle est égale à une valeur donnée. Elle renvoie l'ancienne valeur.
Atomics.exchange()
Cette méthode stocke la valeur fournie à la position indiquée dans le tableau. Elle renvoie l'ancienne valeur.
Atomics.load()
Cette méthode renvoie la valeur à la position indiquée dans le tableau.
Atomics.or()
Cette méthode calcule un OU binaire entre la valeur fournie et la position indiquée dans le tableau. Elle renvoie l'ancienne valeur qui était à cette position.
Atomics.store()
Cette méthode stocke une valeur à une position indiquée dans le tableau. Elle renvoie la valeur.
Atomics.sub()
Cette méthode soustrait la valeur fournie à la position indiquée dans le tableau. Elle renvoie l'ancienne valeur qui était contenue à cette position.
Atomics.xor()
Cette méthode calcule un OU exclusif binaire sur une position donnée dans le tableau. Elle renvoie l'ancienne valeur qui était à cette position.

Attente et notification (wait et notify)

Le méthodes wait() et notify() sont basées sur les futex Linux (selon le vocabulaire employé sur Linux où ça signifie « fast user-space mutex » ou encore « mutex rapide pour l'espace utilisateur ») fournissent des outils pour attendre jusqu'à ce qu'une condition donnée soit vérifiée. Généralement ces méthodes sont utilisées pour bloquer des opérations.

Atomics.wait()
Cette méthode vérifie qu'une position donnée du tableau contient bien une valeur donnée puis dort ou expire. Elle renvoie une des chaînes suivantes "ok", "not-equal", "timed-out". Si l'agent appelant ne permet pas d'attente, cela lèvera une exception Error (la plupart des navigateurs ne permettront pas que futexWait() soit utilisé sur le thread principal du navigateur).
Atomics.notify()
Cette méthode notifient les agents qui attendent dans la file d'attente à une position donnée. Elle renvoie le nombre d'agents notifiés.
Atomics.isLockFree()
Une primitive d'optimisation qui peut être utilisée afin de déterminer s'il faut utiliser des verrous (locks) ou des opérations atomiques. Elle renvoie true si la taille donnée est l'une des propriétés BYTES_PER_ELEMENT des types TypedArray et qu'on peut donc implémenter l'opération de façon atomique plutôt que d'utiliser un verrou.

Spécifications

Spécification État Commentaires
ECMAScript Latest Draft (ECMA-262)
La définition de 'Atomics' dans cette spécification.
Projet  
ECMAScript 2017 (ECMA-262)
La définition de 'Atomics' dans cette spécification.
Standard Définition initiale.

Compatibilité des navigateurs

Update compatibility data on GitHub
OrdinateurMobileServeur
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebview AndroidChrome pour AndroidEdge MobileFirefox pour AndroidOpera pour AndroidSafari sur iOSSamsung InternetNode.js
Support simpleChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Aucun support Non
Notes
Aucun support Non
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Aucun support Non
addChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
andChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
compareExchangeChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
exchangeChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
isLockFreeChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
loadChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
notifyChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes Autre nom
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Autre nom Cette fonctionnalité utilise le nom non-standard : wake
Edge Support complet 16
Notes Autre nom
Support complet 16
Notes Autre nom
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Autre nom Cette fonctionnalité utilise le nom non-standard : wake
Firefox Support complet 63
Notes Désactivée
Support complet 63
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 63: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Support complet 57
Notes Autre nom Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Autre nom Cette fonctionnalité utilise le nom non-standard : wake
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 48 — 55
Désactivée
Désactivée From version 48 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 46 — 48
Notes Autre nom Désactivée
Notes The count parameter defaults to 0 instead of the later-specified +Infinity.
Autre nom Cette fonctionnalité utilise le nom non-standard : futexWake
Désactivée From version 46 until version 48 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?
Autre nom
Aucun support 10.1 — ?
Autre nom
Autre nom Cette fonctionnalité utilise le nom non-standard : wake
WebView Android Aucun support 60 — 63
Notes Autre nom
Aucun support 60 — 63
Notes Autre nom
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Autre nom Cette fonctionnalité utilise le nom non-standard : wake
Chrome Android Aucun support 60 — 63
Notes Autre nom
Aucun support 60 — 63
Notes Autre nom
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Autre nom Cette fonctionnalité utilise le nom non-standard : wake
Edge Mobile ? Firefox Android Support complet 63
Notes Désactivée
Support complet 63
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 63: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Support complet 57
Notes Autre nom Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Autre nom Cette fonctionnalité utilise le nom non-standard : wake
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 48 — 55
Désactivée
Désactivée From version 48 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 46 — 48
Notes Autre nom Désactivée
Notes The count parameter defaults to 0 instead of the later-specified +Infinity.
Autre nom Cette fonctionnalité utilise le nom non-standard : futexWake
Désactivée From version 46 until version 48 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
Autre nom
Support complet 8.10.0
Autre nom
Autre nom Cette fonctionnalité utilise le nom non-standard : wake
orChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
storeChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
subChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
waitChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 48 — 55
Désactivée
Désactivée From version 48 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 46 — 48
Notes Autre nom Désactivée
Notes The method returns values Atomics.OK, Atomics.TIMEDOUT, and Atomics.NOTEQUAL, instead of the later-specified strings.
Autre nom Cette fonctionnalité utilise le nom non-standard : futexWait
Désactivée From version 46 until version 48 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 48 — 55
Désactivée
Désactivée From version 48 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 46 — 48
Notes Autre nom Désactivée
Notes The method returns values Atomics.OK, Atomics.TIMEDOUT, and Atomics.NOTEQUAL, instead of the later-specified strings.
Autre nom Cette fonctionnalité utilise le nom non-standard : futexWait
Désactivée From version 46 until version 48 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0
xorChrome Support complet 68
Support complet 68
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
Edge Support complet 16
Notes
Support complet 16
Notes
Notes Support was removed to mitigate speculative execution side-channel attacks (Windows blog).
Firefox Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Aucun support NonOpera Aucun support NonSafari Aucun support 10.1 — ?WebView Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Chrome Android Aucun support 60 — 63
Notes
Aucun support 60 — 63
Notes
Notes Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
Edge Mobile ? Firefox Android Support complet 57
Notes Désactivée
Support complet 57
Notes Désactivée
Notes Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
Désactivée From version 57: this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Aucun support 55 — 57
Aucun support 46 — 55
Désactivée
Désactivée From version 46 until version 55 (exclusive): this feature is behind the javascript.options.shared_memory preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Aucun support NonSafari iOS Aucun support NonSamsung Internet Android Aucun support Nonnodejs Support complet 8.10.0

Légende

Support complet  
Support complet
Aucun support  
Aucun support
Compatibilité inconnue  
Compatibilité inconnue
Voir les notes d'implémentation.
Voir les notes d'implémentation.
Une action explicite de l'utilisateur est nécessaire pour activer cette fonctionnalité.
Une action explicite de l'utilisateur est nécessaire pour activer cette fonctionnalité.
Cette fonctionnalité utilise un nom non-standard.
Cette fonctionnalité utilise un nom non-standard.

Notes de compatibilité

Avant Firefox 48 (Firefox 48 / Thunderbird 48 / SeaMonkey 2.45), les noms les plus récents et la sémantique la plus récente n'étaient pas encore implémentés. Les changements qui ont eu lieu entre la version 46 et la version 48 de Firefox sont :

  • Les méthodes Atomics.futexWakeOrRequeue() et Atomics.fence() sont désormais complètement retirées (cf. bug 1259544 et bug 1225028).
  • Les méthodes Atomics.wait() et  Atomics.wake() qui étaient nommées Atomics.futexWait() ete Atomics.futexWake() (cf. bug 1260910). Les anciens noms seront  définitivement supprimés à partir de la version 49 (bug 1262062). Atomics.wake() a été renommé en Atomics.notify() à partir de la version 63.
  • Les propriétés Atomics.OK, Atomics.TIMEDOUT, Atomics.NOTEQUAL ont été retirées. La méthode Atomics.wait() renvoie désormais les chaînes de caractères "ok", "timed-out" ou "not-equal" (cf. bug 1260835).
  • Le paramètre count de la méthode Atomics.wake() a été modifié, sa valeur par défaut est désormais +Infinity et non 0 (bug 1253350).

Voir aussi

Étiquettes et contributeurs liés au document

Contributeurs à cette page : SphinxKnight
Dernière mise à jour par : SphinxKnight,