summaryrefslogtreecommitdiffstats
path: root/js/src/builtin/AtomicsObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/builtin/AtomicsObject.cpp')
-rw-r--r--js/src/builtin/AtomicsObject.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/builtin/AtomicsObject.cpp b/js/src/builtin/AtomicsObject.cpp
index c4a221aab8..232108872c 100644
--- a/js/src/builtin/AtomicsObject.cpp
+++ b/js/src/builtin/AtomicsObject.cpp
@@ -280,6 +280,7 @@ bool AtomicAccess(JSContext* cx, HandleValue obj, HandleValue index, Op op) {
return op(ArrayOps<int64_t>{}, unwrappedTypedArray, intIndex);
case Scalar::BigUint64:
return op(ArrayOps<uint64_t>{}, unwrappedTypedArray, intIndex);
+ case Scalar::Float16:
case Scalar::Float32:
case Scalar::Float64:
case Scalar::Uint8Clamped:
@@ -931,7 +932,7 @@ FutexThread::WaitResult js::FutexThread::wait(
// See explanation below.
if (state_ == WaitingInterrupted) {
- UnlockGuard<Mutex> unlock(locked);
+ UnlockGuard unlock(locked);
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr,
JSMSG_ATOMICS_WAIT_NOT_ALLOWED);
return WaitResult::Error;
@@ -1032,7 +1033,7 @@ FutexThread::WaitResult js::FutexThread::wait(
state_ = WaitingInterrupted;
{
- UnlockGuard<Mutex> unlock(locked);
+ UnlockGuard unlock(locked);
if (!cx->handleInterrupt()) {
return WaitResult::Error;
}