Merge pull request #19 from electron/get-wrapper-const
GetWrapper should be const
This commit is contained in:
commit
99d9e262eb
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ WrappableBase::~WrappableBase() {
|
||||||
wrapper_.Reset();
|
wrapper_.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
v8::Local<v8::Object> WrappableBase::GetWrapper() {
|
v8::Local<v8::Object> WrappableBase::GetWrapper() const {
|
||||||
if (!wrapper_.IsEmpty())
|
if (!wrapper_.IsEmpty())
|
||||||
return v8::Local<v8::Object>::New(isolate_, wrapper_);
|
return v8::Local<v8::Object>::New(isolate_, wrapper_);
|
||||||
else
|
else
|
||||||
|
|
|
@ -31,7 +31,7 @@ class WrappableBase {
|
||||||
virtual ~WrappableBase();
|
virtual ~WrappableBase();
|
||||||
|
|
||||||
// Retrieve the v8 wrapper object cooresponding to this object.
|
// Retrieve the v8 wrapper object cooresponding to this object.
|
||||||
v8::Local<v8::Object> GetWrapper();
|
v8::Local<v8::Object> GetWrapper() const;
|
||||||
|
|
||||||
// Returns the Isolate this object is created in.
|
// Returns the Isolate this object is created in.
|
||||||
v8::Isolate* isolate() const { return isolate_; }
|
v8::Isolate* isolate() const { return isolate_; }
|
||||||
|
|
Loading…
Reference in a new issue