diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2016-12-14 10:35:26 -0800 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2016-12-14 10:35:26 -0800 |
commit | d1e8899310d8e8758d9900628de448a3a43bd050 (patch) | |
tree | 6b1fbde60acf49523e1df8ecf5b58d97abe6e30d /src | |
parent | ccba2edb7c7a9e2de82dd3a24961c19a00c8de44 (diff) | |
download | flatbuffers-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.cpp | 2 |
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; |