Skip to content

Commit

Permalink
src: use deleted function instead of private function in class AsyncWrap
Browse files Browse the repository at this point in the history
PR-URL: nodejs#26634
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
gengjiawen authored and targos committed Mar 27, 2019
1 parent 5b7c4d6 commit d8e9cb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/async_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class AsyncWrap : public BaseObject {

~AsyncWrap() override;

AsyncWrap() = delete;

static v8::Local<v8::FunctionTemplate> GetConstructorTemplate(
Environment* env);

Expand Down Expand Up @@ -200,7 +202,6 @@ class AsyncWrap : public BaseObject {
ProviderType provider,
double execution_async_id,
bool silent);
inline AsyncWrap();
const ProviderType provider_type_;
// Because the values may be Reset(), cannot be made const.
double async_id_ = -1;
Expand Down

0 comments on commit d8e9cb7

Please sign in to comment.