1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:27:34 +00:00

LibJS: Stub out Atomics.wait and Atomics.waitAsync

We don't have the facilities to implement these methods fully (namely, a
fully realized SharedArrayBuffer). But we can implement enough to
validate the values passed in by the user.
This commit is contained in:
Timothy Flynn 2023-11-15 16:03:27 -05:00 committed by Tim Flynn
parent a7073c3f1f
commit 78edaad97d
6 changed files with 241 additions and 0 deletions

View file

@ -30,6 +30,8 @@ private:
JS_DECLARE_NATIVE_FUNCTION(or_);
JS_DECLARE_NATIVE_FUNCTION(store);
JS_DECLARE_NATIVE_FUNCTION(sub);
JS_DECLARE_NATIVE_FUNCTION(wait);
JS_DECLARE_NATIVE_FUNCTION(wait_async);
JS_DECLARE_NATIVE_FUNCTION(xor_);
};