diff --git a/src/node_file.cc b/src/node_file.cc index de5c455c7a2a85..074935b51aa66b 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -2534,6 +2534,9 @@ void Initialize(Local target, use_promises_symbol).Check(); } +BindingData* FSReqBase::binding_data() { + return binding_data_.get(); +} } // namespace fs } // end namespace node diff --git a/src/node_file.h b/src/node_file.h index 2b157de5eb485d..95a68b5d89a704 100644 --- a/src/node_file.h +++ b/src/node_file.h @@ -109,7 +109,7 @@ class FSReqBase : public ReqWrap { void MemoryInfo(MemoryTracker* tracker) const override; - BindingData* binding_data() { return binding_data_.get(); } + BindingData* binding_data(); private: std::unique_ptr continuation_data_;