Fix crashes about persistent v8 functions.
This commit is contained in:
parent
e4bfa373de
commit
61c63a6af9
2 changed files with 3 additions and 4 deletions
|
@ -226,7 +226,7 @@ bool V8ValueCanBeConvertedTo<atom::NativeWindow*>(v8::Handle<v8::Value> value) {
|
|||
}
|
||||
|
||||
template<> inline
|
||||
bool V8ValueCanBeConvertedTo<v8::Persistent<v8::Function>>(
|
||||
bool V8ValueCanBeConvertedTo<atom::RefCountedV8Function>(
|
||||
v8::Handle<v8::Value> value) {
|
||||
return value->IsFunction();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue