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);