mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
This commit is contained in:
parent
1df3652e27
commit
7c0c1c8f49
214 changed files with 825 additions and 827 deletions
|
@ -35,8 +35,8 @@ public:
|
|||
Value result() const { return m_result; }
|
||||
|
||||
struct ResolvingFunctions {
|
||||
FunctionObject& resolve;
|
||||
FunctionObject& reject;
|
||||
NonnullGCPtr<FunctionObject> resolve;
|
||||
NonnullGCPtr<FunctionObject> reject;
|
||||
};
|
||||
ResolvingFunctions create_resolving_functions();
|
||||
|
||||
|
@ -58,11 +58,11 @@ private:
|
|||
void trigger_reactions() const;
|
||||
|
||||
// 27.2.6 Properties of Promise Instances, https://tc39.es/ecma262/#sec-properties-of-promise-instances
|
||||
State m_state { State::Pending }; // [[PromiseState]]
|
||||
Value m_result; // [[PromiseResult]]
|
||||
Vector<PromiseReaction*> m_fulfill_reactions; // [[PromiseFulfillReactions]]
|
||||
Vector<PromiseReaction*> m_reject_reactions; // [[PromiseRejectReactions]]
|
||||
bool m_is_handled { false }; // [[PromiseIsHandled]]
|
||||
State m_state { State::Pending }; // [[PromiseState]]
|
||||
Value m_result; // [[PromiseResult]]
|
||||
Vector<GCPtr<PromiseReaction>> m_fulfill_reactions; // [[PromiseFulfillReactions]]
|
||||
Vector<GCPtr<PromiseReaction>> m_reject_reactions; // [[PromiseRejectReactions]]
|
||||
bool m_is_handled { false }; // [[PromiseIsHandled]]
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue