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:
parent
b75b7f0c0d
commit
8414734a2d
4 changed files with 6 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue