Wouter van Oortmerssen
d7ba17dfe5
Changes to make flatbuffers javascript compatible with the closure compiler.
...
Change-Id: Iab8d66a8f34910029deb8a5ff5ec7ba50c5b3421
2017-02-08 17:14:35 -08:00
Wouter van Oortmerssen
d1e8899310
Fixed JS outputting helper for Int64Array.
...
Change-Id: I7d23fa3416feb78ea18d2c451e7b4e1d9be11bfc
2016-12-14 10:35:26 -08:00
Michael Paulson
d298adc4e6
chore(lint) ( #4079 )
...
* chore(lint)
I accidentally let 2 pieces of lint in with my generated code.
* fix(generate-code): I did not generate all the required code for tests.
2016-11-07 10:27:26 -08:00
benssson
cf0d7829a6
Fixed javascript helper for typed arrays of scalars not taking into ( #4068 )
...
account underlying buffer's byte offset.
2016-10-26 10:29:36 -07:00
Michael Paulson
0230a7173f
feat(mutable-js): The mutable Scalar generation.
...
This is just the initial commit to start the conversation on adding mutation to javascript.
2016-07-25 20:00:22 -07:00
James Gilles
4a49493e27
js:add @namespace annotation to namespaces
2016-07-11 01:40:38 -04:00
lakedaemon
03ad8fa4d9
sharing the WrapInNameSpace methods
2016-06-23 00:37:55 +02:00
lakedaemon
43fedfa8ba
removed static from wrapInNamespace method
2016-06-23 00:36:33 +02:00
lakedaemon
2f52618c4e
removed parser from the method signatures
2016-06-23 00:36:33 +02:00
lakedaemon
a9e21170bc
js:pulled methods inside the class
2016-06-23 00:36:33 +02:00
lakedaemon
cd1493b082
sharing the Flatbuffers warning
2016-05-26 15:26:58 +02:00
Lakedaemon
4a8801da34
shared method that exits early if everything is generated
2016-05-25 15:15:56 +02:00
Lakedaemon
6765c19d45
memory leak fix + php/js/python transition to class based generator
2016-04-26 20:36:43 +02:00
Wouter van Oortmerssen
617fedf349
Merge pull request #3765 from Mischanix/js-typed-arrays
...
Javascript helper to get typed array views
2016-02-26 09:51:50 -08:00
Evan Wallace
31b30335f6
Fix #3773 : Generated JS now avoids the flatbuffers object
2016-02-25 01:06:16 -08:00
Robert Nix
9d92aeb182
Add helper for javascript typed arrays
...
For scalar vector fields, emit an Array helper that
returns a typed array view of the underlying bytes buffer.
2016-02-12 12:41:28 -06:00
Wouter van Oortmerssen
45bda6e08d
Added --gen-all to generate code for a schema and all its includes.
...
Also refactored the way options are stored.
Change-Id: I709ac908cd2aba396c9c282725cf1d42ccce0882
Tested: on Linux.
2015-12-04 09:44:31 -08:00
Wouter van Oortmerssen
1917e577a2
Fixes for JS generator in VS
2015-10-19 15:55:28 -07:00
Evan Wallace
4bef5e89c4
Add UTF-8 support to the JavaScript API
...
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-14 23:07:40 -07:00
Evan Wallace
79222bf100
Update monster_test_generated.js baseline after rebase
2015-10-14 23:06:58 -07:00
Evan Wallace
00fd394d23
remove unnecessary return
2015-10-14 21:15:57 -07:00
Evan Wallace
224e33ed09
Add support for JavaScript code generation
...
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.
2015-10-14 21:15:57 -07:00