Don't convert Function to Dictionary
This commit is contained in:
parent
7160054927
commit
24d31e2046
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ v8::Local<v8::Value> Converter<Dictionary>::ToV8(v8::Isolate* isolate,
|
|||
bool Converter<Dictionary>::FromV8(v8::Isolate* isolate,
|
||||
v8::Local<v8::Value> val,
|
||||
Dictionary* out) {
|
||||
if (!val->IsObject())
|
||||
if (!val->IsObject() || val->IsFunction())
|
||||
return false;
|
||||
*out = Dictionary(isolate, v8::Local<v8::Object>::Cast(val));
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue