1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

LibJS: Propagate the OOM error from setting the String length property

This commit is contained in:
Timothy Flynn 2023-01-28 13:40:56 -05:00 committed by Linus Groh
parent b75b7f0c0d
commit 8414734a2d
4 changed files with 6 additions and 7 deletions

View file

@ -14,7 +14,7 @@ class StringObject : public Object {
JS_OBJECT(StringObject, Object);
public:
static NonnullGCPtr<StringObject> create(Realm&, PrimitiveString&, Object& prototype);
static ThrowCompletionOr<NonnullGCPtr<StringObject>> create(Realm&, PrimitiveString&, Object& prototype);
virtual ThrowCompletionOr<void> initialize(Realm&) override;
virtual ~StringObject() override = default;