summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2016-12-14 10:35:26 -0800
committerWouter van Oortmerssen <aardappel@gmail.com>2016-12-14 10:35:26 -0800
commitd1e8899310d8e8758d9900628de448a3a43bd050 (patch)
tree6b1fbde60acf49523e1df8ecf5b58d97abe6e30d /src
parentccba2edb7c7a9e2de82dd3a24961c19a00c8de44 (diff)
downloadflatbuffers-d1e8899310d8e8758d9900628de448a3a43bd050.tar.gz
flatbuffers-d1e8899310d8e8758d9900628de448a3a43bd050.tar.bz2
flatbuffers-d1e8899310d8e8758d9900628de448a3a43bd050.zip
Fixed JS outputting helper for Int64Array.
Change-Id: I7d23fa3416feb78ea18d2c451e7b4e1d9be11bfc
Diffstat (limited to 'src')
-rw-r--r--src/idl_gen_js.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_js.cpp b/src/idl_gen_js.cpp
index 32c660c9..dd04bec4 100644
--- a/src/idl_gen_js.cpp
+++ b/src/idl_gen_js.cpp
@@ -576,7 +576,7 @@ void GenStruct(const Parser &parser, StructDef &struct_def, std::string *code_pt
// For scalar types, emit a typed array helper
auto vectorType = field.value.type.VectorType();
- if (IsScalar(vectorType.base_type)) {
+ if (IsScalar(vectorType.base_type) && !IsLong(vectorType.base_type)) {
GenDocComment(code_ptr, "@returns {" + GenType(vectorType) + "Array}");
code += object_name + ".prototype." + MakeCamel(field.name, false);
code += "Array = function() {\n" + offset_prefix;