summaryrefslogtreecommitdiff
path: root/platform/node
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-01-02 17:02:33 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-01-04 17:38:33 -0800
commit1b7dfff5cf9bafb832c34449f789ab7096dee0fb (patch)
treead27a6a6edc6080a91c5939b5c7150e5ee832298 /platform/node
parentcf859d6d0b782b03f7cda175757daed08731b440 (diff)
downloadqtlocation-mapboxgl-1b7dfff5cf9bafb832c34449f789ab7096dee0fb.tar.gz
[node] Fix array/object distinction
Only affects tests.
Diffstat (limited to 'platform/node')
-rw-r--r--platform/node/src/node_conversion.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/node/src/node_conversion.hpp b/platform/node/src/node_conversion.hpp
index 6ebc846d11..22daedef6a 100644
--- a/platform/node/src/node_conversion.hpp
+++ b/platform/node/src/node_conversion.hpp
@@ -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) {