node-flatbuffers
node-flatbuffers copied to clipboard
Fixed fatal errors related to schema namespacing
I noticed weird errors when integrating with my project, tracked it down to the runtime compilation! When a schema is namespaced, it injects names like 'Example.Table' into the code, which messes things up. I chose to replace with an underscore but I suppose you could enforce Pascal case.
Commit notes: String replace added on object.name, enumDef.name (from '.' to '_') when generating/parsing Updated test schemas with example namespace 'Test' and confirmed fix