@@ -1108,7 +1108,7 @@ namespace Napi {
1108
1108
// A reference can be moved but cannot be copied.
1109
1109
Reference (Reference<T>&& other);
1110
1110
Reference<T>& operator =(Reference<T>&& other);
1111
- Reference<T>& operator =(Reference<T>&) = delete ;
1111
+ Reference<T>& operator =(const Reference<T>&) = delete ;
1112
1112
1113
1113
operator napi_ref () const ;
1114
1114
bool operator ==(const Reference<T> &other) const ;
@@ -1153,7 +1153,7 @@ namespace Napi {
1153
1153
ObjectReference& operator =(Reference<Object>&& other);
1154
1154
ObjectReference (ObjectReference&& other);
1155
1155
ObjectReference& operator =(ObjectReference&& other);
1156
- ObjectReference& operator =(ObjectReference&) = delete ;
1156
+ ObjectReference& operator =(const ObjectReference&) = delete ;
1157
1157
1158
1158
Napi::Value Get (const char * utf8name) const ;
1159
1159
Napi::Value Get (const std::string& utf8name) const ;
@@ -1191,7 +1191,7 @@ namespace Napi {
1191
1191
FunctionReference (FunctionReference&& other);
1192
1192
FunctionReference& operator =(FunctionReference&& other);
1193
1193
FunctionReference (const FunctionReference&) = delete ;
1194
- FunctionReference& operator =(FunctionReference&) = delete ;
1194
+ FunctionReference& operator =(const FunctionReference&) = delete ;
1195
1195
1196
1196
Napi::Value operator ()(const std::initializer_list<napi_value>& args) const ;
1197
1197
@@ -1333,7 +1333,7 @@ namespace Napi {
1333
1333
Error (Error&& other);
1334
1334
Error& operator =(Error&& other);
1335
1335
Error (const Error&);
1336
- Error& operator =(Error&);
1336
+ Error& operator =(const Error&);
1337
1337
1338
1338
const std::string& Message () const NAPI_NOEXCEPT;
1339
1339
void ThrowAsJavaScriptException () const ;
@@ -1806,7 +1806,7 @@ namespace Napi {
1806
1806
AsyncContext (AsyncContext&& other);
1807
1807
AsyncContext& operator =(AsyncContext&& other);
1808
1808
AsyncContext (const AsyncContext&) = delete ;
1809
- AsyncContext& operator =(AsyncContext&) = delete ;
1809
+ AsyncContext& operator =(const AsyncContext&) = delete ;
1810
1810
1811
1811
operator napi_async_context () const ;
1812
1812
@@ -1825,7 +1825,7 @@ namespace Napi {
1825
1825
AsyncWorker (AsyncWorker&& other);
1826
1826
AsyncWorker& operator =(AsyncWorker&& other);
1827
1827
AsyncWorker (const AsyncWorker&) = delete ;
1828
- AsyncWorker& operator =(AsyncWorker&) = delete ;
1828
+ AsyncWorker& operator =(const AsyncWorker&) = delete ;
1829
1829
1830
1830
operator napi_async_work () const ;
1831
1831
0 commit comments