summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/AtomicsObject.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-21 17:25:31 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-23 13:58:30 +0100
commit26366d5930dca8f82392d2660f50522dea20020b (patch)
tree657f4bfe7b6d8f29d991b1793576c751d9c9bea3 /Userland/Libraries/LibJS/Runtime/AtomicsObject.cpp
parentb037894287dd32b73a6c1f4cc496b5363b34db7f (diff)
downloadserenity-26366d5930dca8f82392d2660f50522dea20020b.zip
LibJS: Replace GlobalObject with VM in ArrayBuffer AOs [Part 11/19]
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AtomicsObject.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/AtomicsObject.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AtomicsObject.cpp b/Userland/Libraries/LibJS/Runtime/AtomicsObject.cpp
index 7868ddf01a..b7176f5c59 100644
--- a/Userland/Libraries/LibJS/Runtime/AtomicsObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/AtomicsObject.cpp
@@ -235,10 +235,10 @@ static ThrowCompletionOr<Value> atomic_compare_exchange_impl(GlobalObject& globa
constexpr bool is_little_endian = __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__;
// 11. Let expectedBytes be NumericToRawBytes(elementType, expected, isLittleEndian).
- auto expected_bytes = numeric_to_raw_bytes<T>(global_object, expected, is_little_endian);
+ auto expected_bytes = numeric_to_raw_bytes<T>(vm, expected, is_little_endian);
// 12. Let replacementBytes be NumericToRawBytes(elementType, replacement, isLittleEndian).
- auto replacement_bytes = numeric_to_raw_bytes<T>(global_object, replacement, is_little_endian);
+ auto replacement_bytes = numeric_to_raw_bytes<T>(vm, replacement, is_little_endian);
// FIXME: Implement SharedArrayBuffer case.
// 13. If IsSharedArrayBuffer(buffer) is true, then
@@ -263,7 +263,7 @@ static ThrowCompletionOr<Value> atomic_compare_exchange_impl(GlobalObject& globa
}
// 15. Return RawBytesToNumeric(elementType, rawBytesRead, isLittleEndian).
- return raw_bytes_to_numeric<T>(global_object, raw_bytes_read, is_little_endian);
+ return raw_bytes_to_numeric<T>(vm, raw_bytes_read, is_little_endian);
}
// 25.4.5 Atomics.compareExchange ( typedArray, index, expectedValue, replacementValue ), https://tc39.es/ecma262/#sec-atomics.compareexchange