summaryrefslogtreecommitdiff
path: root/src/async_wrap.h
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-03-17 00:07:48 +0800
committerRefael Ackermann <refack@gmail.com>2019-03-17 21:58:27 -0400
commitdace48909948a70d9ebabdcd389878f8325ae2dc (patch)
tree3ce70bc8a92bb58bf4499a2ea96df696c67103ee /src/async_wrap.h
parentb215bf9dacde65f7904fe87586547b9a8ac5f950 (diff)
downloadandroid-node-v8-dace48909948a70d9ebabdcd389878f8325ae2dc.tar.gz
android-node-v8-dace48909948a70d9ebabdcd389878f8325ae2dc.tar.bz2
android-node-v8-dace48909948a70d9ebabdcd389878f8325ae2dc.zip
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>
Diffstat (limited to 'src/async_wrap.h')
-rw-r--r--src/async_wrap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/async_wrap.h b/src/async_wrap.h
index 1f1d19201b..d84f0c6d2f 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<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;