Merge pull request #17 from sethlu/remove-getwrapper-dcheck

Remove WrappableBase::GetWrapper() DCHECK
This commit is contained in:
Cheng Zhao 2017-12-18 09:22:13 +09:00 committed by GitHub
commit 29b03fc242
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,6 @@ WrappableBase::~WrappableBase() {
}
v8::Local<v8::Object> WrappableBase::GetWrapper() {
DCHECK(!wrapper_.IsEmpty());
if (!wrapper_.IsEmpty())
return v8::Local<v8::Object>::New(isolate_, wrapper_);
else