mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Add initial implementation for SharedArrayBuffer
None of the actual sharing is implemented yet, but this is enough for most basic functionality. Diff Tests: +260 ✅ -262 ❌ +2 💀
This commit is contained in:
parent
1c1aa2c0d0
commit
3781948f0c
Notes:
sideshowbarker
2024-07-17 05:02:35 +09:00
Author: https://github.com/shannonbooth
Commit: 3781948f0c
Pull-request: https://github.com/SerenityOS/serenity/pull/19727
Reviewed-by: https://github.com/linusg
13 changed files with 347 additions and 0 deletions
|
@ -63,6 +63,7 @@
|
|||
#include <LibJS/Runtime/SetConstructor.h>
|
||||
#include <LibJS/Runtime/ShadowRealmConstructor.h>
|
||||
#include <LibJS/Runtime/Shape.h>
|
||||
#include <LibJS/Runtime/SharedArrayBufferConstructor.h>
|
||||
#include <LibJS/Runtime/StringConstructor.h>
|
||||
#include <LibJS/Runtime/StringPrototype.h>
|
||||
#include <LibJS/Runtime/SuppressedErrorConstructor.h>
|
||||
|
@ -158,6 +159,7 @@ Object& set_default_global_bindings(Realm& realm)
|
|||
global.define_intrinsic_accessor(vm.names.RegExp, attr, [](auto& realm) -> Value { return realm.intrinsics().regexp_constructor(); });
|
||||
global.define_intrinsic_accessor(vm.names.Set, attr, [](auto& realm) -> Value { return realm.intrinsics().set_constructor(); });
|
||||
global.define_intrinsic_accessor(vm.names.ShadowRealm, attr, [](auto& realm) -> Value { return realm.intrinsics().shadow_realm_constructor(); });
|
||||
global.define_intrinsic_accessor(vm.names.SharedArrayBuffer, attr, [](auto& realm) -> Value { return realm.intrinsics().shared_array_buffer_constructor(); });
|
||||
global.define_intrinsic_accessor(vm.names.String, attr, [](auto& realm) -> Value { return realm.intrinsics().string_constructor(); });
|
||||
global.define_intrinsic_accessor(vm.names.SuppressedError, attr, [](auto& realm) -> Value { return realm.intrinsics().suppressed_error_constructor(); });
|
||||
global.define_intrinsic_accessor(vm.names.Symbol, attr, [](auto& realm) -> Value { return realm.intrinsics().symbol_constructor(); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue