LibWeb: Change return type of encapsulate for AlgorithmMethods

The standard ask to turn EncapsulatedBits into an ECMAScript Object
which means it must initially live in the host stack.
This commit is contained in:
Tete17
2025-11-28 21:54:03 +01:00
committed by Shannon Booth
parent 63c99f3703
commit ec67f0ae8d
Notes: github-actions[bot] 2025-12-30 13:18:36 +00:00
3 changed files with 6 additions and 6 deletions

View File

@@ -288,7 +288,7 @@ JS::ThrowCompletionOr<GC::Ref<JS::Object>> EncapsulatedKey::to_object(JS::Realm&
return object;
}
JS::ThrowCompletionOr<GC::Ref<JS::Object>> EncapsulatedBits::to_object(JS::Realm& realm)
JS::ThrowCompletionOr<GC::Ref<JS::Object>> EncapsulatedBits::to_object(JS::Realm& realm) const
{
auto object = JS::Object::create(realm, realm.intrinsics().object_prototype());