summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)AuthorFilesLines
2016-08-10Clarified in the docs how to get to the serialized bytes.Wouter van Oortmerssen1-3/+2
This was a frequent source of confusion, since in all implementations the data doesn't start at offset 0 in the buffer. Change-Id: I045966e65928e9acd9def84e215914ecb5510653
2016-07-11js:add @namespace annotation to namespacesJames Gilles1-0/+4
2016-02-25Fix #3773: Generated JS now avoids the flatbuffers objectEvan Wallace1-0/+32
2016-01-19Revamping the FlatBuffers docs.Mark Klara1-10/+46
Adding an API reference for the supported languages. General docs cleanup, including a new `tutorial` section that supports all of the supported languages. Added samples for each supported language to mirror the new tutorial page. Cleaned up all the links by making them `@ref` style links, instead of referencing the names of the generated `.html` files. Removed all generated files that were unnecessarily committed. Also fixed the C# tests (two were failing due to a missing file). Bug: b/25801305 Tested: Tested all samples on Ubuntu, Mac, and Android. Docs were generated using doxygen and viewed on Chrome. Change-Id: I2acaba6e332a15ae2deff5f26a4a25da7bd2c954
2015-10-14Add UTF-8 support to the JavaScript APIEvan Wallace1-30/+53
This adds an optional argument to generated getters for string fields to specify the encoding type and overloads the createString() function. It's now possible to use either JavaScript UTF-16 string objects or C-style UTF-8 byte arrays (Uint8Array) for string data.
2015-10-14change DataView to bit twiddling for JavaScriptEvan Wallace1-20/+48
2015-10-14Add low-level fuzzer, fix 64-bit issue it foundEvan Wallace1-2/+2
2015-10-14Add support for JavaScript code generationEvan Wallace1-0/+1021
This adds a JavaScript language target. The generated JavaScript uses Google Closure Compiler type annotations and can be compiled using the advanced compilation mode, which performs type checking and optimizations such as inlining and dead code elimination. The generated JavaScript also exports all generated symbols for use with Node.js and RequireJS. This export behavior can be turned off with the --no-js-exports flag for use with Google Closure Compiler.