File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -366,8 +366,8 @@ template <class T> class Eternal {
366
366
Set(isolate, handle);
367
367
}
368
368
// Can only be safely called if already set.
369
- V8_INLINE Local<T> Get(Isolate* isolate);
370
- V8_INLINE bool IsEmpty() { return index_ == kInitialValue; }
369
+ V8_INLINE Local<T> Get(Isolate* isolate) const ;
370
+ V8_INLINE bool IsEmpty() const { return index_ == kInitialValue; }
371
371
template<class S> V8_INLINE void Set(Isolate* isolate, Local<S> handle);
372
372
373
373
private:
@@ -8604,9 +8604,8 @@ void Eternal<T>::Set(Isolate* isolate, Local<S> handle) {
8604
8604
V8::Eternalize(isolate, reinterpret_cast<Value*>(*handle), &this->index_);
8605
8605
}
8606
8606
8607
-
8608
- template<class T>
8609
- Local<T> Eternal<T>::Get(Isolate* isolate) {
8607
+ template <class T>
8608
+ Local<T> Eternal<T>::Get(Isolate* isolate) const {
8610
8609
return Local<T>(reinterpret_cast<T*>(*V8::GetEternal(isolate, index_)));
8611
8610
}
8612
8611
You can’t perform that action at this time.
0 commit comments