mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibCore: Add a constructor that sets the parent object
This commit is contained in:
parent
30295bd988
commit
dc318d3080
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Promise() = default;
|
Promise() = default;
|
||||||
|
Promise(Object* parent)
|
||||||
|
: Object(parent)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
Optional<ErrorOr<Result>> m_pending_or_error;
|
Optional<ErrorOr<Result>> m_pending_or_error;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue