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

PR-URL: https://github.com/nodejs/node/pull/26634
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
gengjiawen authored and Refael Ackermann committed 2019-03-17 21:58:27 -04:00
1 parent b215bf9dac
commit dace489099
1 file changed
+2 -1
+2 -1
View File
@@ -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;