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
2019-03-17 00:07:48 +08:00
committed by Refael Ackermann
parent b215bf9dac
commit dace489099

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;