-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
src: use symbol to store AsyncWrap
resource
#31745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,7 +152,7 @@ class AsyncWrap : public BaseObject { | |
static void EmitAfter(Environment* env, double async_id); | ||
static void EmitPromiseResolve(Environment* env, double async_id); | ||
|
||
void EmitDestroy(); | ||
void EmitDestroy(bool from_gc = false); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. non-blocking nit... would prefer an enum here rather than a bool but that can be done in a separate PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I generally agree with that but here there’s effectively only one call site where passing |
||
|
||
void EmitTraceEventBefore(); | ||
static void EmitTraceEventAfter(ProviderType type, double async_id); | ||
|
@@ -199,7 +199,6 @@ class AsyncWrap : public BaseObject { | |
v8::Local<v8::Object> obj); | ||
|
||
bool IsDoneInitializing() const override; | ||
v8::Local<v8::Object> GetResource(); | ||
|
||
private: | ||
friend class PromiseWrap; | ||
|
@@ -219,7 +218,6 @@ class AsyncWrap : public BaseObject { | |
// Because the values may be Reset(), cannot be made const. | ||
double async_id_ = kInvalidAsyncId; | ||
double trigger_async_id_; | ||
v8::Global<v8::Object> resource_; | ||
}; | ||
|
||
} // namespace node | ||
|
Uh oh!
There was an error while loading. Please reload this page.