Skip to content

Commit 3637e71

Browse files
gengjiawentargos
authored andcommitted
src: use deleted function instead of private function in class AsyncWrap
PR-URL: #26634 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 51b8a89 commit 3637e71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/async_wrap.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class AsyncWrap : public BaseObject {
112112

113113
~AsyncWrap() override;
114114

115+
AsyncWrap() = delete;
116+
115117
static v8::Local<v8::FunctionTemplate> GetConstructorTemplate(
116118
Environment* env);
117119

@@ -200,7 +202,6 @@ class AsyncWrap : public BaseObject {
200202
ProviderType provider,
201203
double execution_async_id,
202204
bool silent);
203-
inline AsyncWrap();
204205
const ProviderType provider_type_;
205206
// Because the values may be Reset(), cannot be made const.
206207
double async_id_ = -1;

0 commit comments

Comments
 (0)