Skip to content
Permalink
Browse files

src: use deleted function instead of private function in class AsyncWrap

PR-URL: #26634
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information...
gengjiawen authored and refack committed Mar 16, 2019
1 parent b215bf9 commit dace48909948a70d9ebabdcd389878f8325ae2dc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/async_wrap.h
@@ -112,6 +112,8 @@ class AsyncWrap : public BaseObject {

~AsyncWrap() override;

AsyncWrap() = delete;

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

@@ -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;

0 comments on commit dace489

Please sign in to comment.
You can’t perform that action at this time.