mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05: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:
|
||||
Promise() = default;
|
||||
Promise(Object* parent)
|
||||
: Object(parent)
|
||||
{
|
||||
}
|
||||
|
||||
Optional<ErrorOr<Result>> m_pending_or_error;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue