From c9697317558691bc30172097048bdf92891729e3 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Wed, 20 Mar 2019 21:21:30 +0800 Subject: [PATCH] src: use deleted function for class BaseObject PR-URL: https://github.com/nodejs/node/pull/26815 Reviewed-By: Refael Ackermann --- src/base_object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base_object.h b/src/base_object.h index 4796a052c0b5c1..091c3d5af01954 100644 --- a/src/base_object.h +++ b/src/base_object.h @@ -40,6 +40,8 @@ class BaseObject : public MemoryRetainer { inline BaseObject(Environment* env, v8::Local object); inline ~BaseObject() override; + BaseObject() = delete; + // Returns the wrapped object. Returns an empty handle when // persistent.IsEmpty() is true. inline v8::Local object() const; @@ -83,8 +85,6 @@ class BaseObject : public MemoryRetainer { const v8::PropertyCallbackInfo& info); private: - BaseObject(); - v8::Local WrappedObject() const override; bool IsRootNode() const override; static void DeleteMe(void* data);