[node] Fix array/object distinction

Only affects tests.
This commit is contained in:
John Firebaugh
2017-01-02 17:02:33 -08:00
parent cf859d6d0b
commit 1b7dfff5cf

View File

@@ -36,7 +36,7 @@ inline v8::Local<v8::Value> arrayMember(v8::Local<v8::Value> value, std::size_t
inline bool isObject(v8::Local<v8::Value> value) {
Nan::HandleScope scope;
return value->IsObject();
return value->IsObject() && !value->IsArray();
}
inline optional<v8::Local<v8::Value>> objectMember(v8::Local<v8::Value> value, const char * name) {