Fix recursive calling of handle().

This commit is contained in:
Cheng Zhao 2013-12-11 23:57:37 +08:00
parent 409a431892
commit d53915c6ab
2 changed files with 6 additions and 11 deletions

View file

@ -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);