node-flatbuffers icon indicating copy to clipboard operation
node-flatbuffers copied to clipboard

Fixed fatal errors related to schema namespacing

Open acgaudette opened this issue 7 years ago • 0 comments

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

acgaudette avatar Jan 13 '17 11:01 acgaudette