From 3637e7132892dd848659c8f64ae8f528204f9e5b Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sun, 17 Mar 2019 00:07:48 +0800 Subject: [PATCH] src: use deleted function instead of private function in class AsyncWrap PR-URL: https://github.com/nodejs/node/pull/26634 Reviewed-By: Anna Henningsen Reviewed-By: Refael Ackermann --- src/async_wrap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/async_wrap.h b/src/async_wrap.h index 1f1d19201bd61e..d84f0c6d2f61db 100644 --- a/src/async_wrap.h +++ b/src/async_wrap.h @@ -112,6 +112,8 @@ class AsyncWrap : public BaseObject { ~AsyncWrap() override; + AsyncWrap() = delete; + static v8::Local 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;