Fix recursive calling of handle().
This commit is contained in:
parent
409a431892
commit
d53915c6ab
2 changed files with 6 additions and 11 deletions
|
@ -29,11 +29,6 @@ class EventEmitter : public node::ObjectWrap {
|
|||
bool Emit(const std::string& name);
|
||||
bool Emit(const std::string& name, base::ListValue* args);
|
||||
|
||||
// The handle() of ObjectWrap doesn't provide the const version.
|
||||
inline v8::Local<v8::Object> handle() const {
|
||||
return const_cast<EventEmitter*>(this)->handle();
|
||||
}
|
||||
|
||||
protected:
|
||||
explicit EventEmitter(v8::Handle<v8::Object> wrapper);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue