mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 21:12:19 +00:00
In Javascript, generate bidirectional mappings for enums, between Name: Value and between Value: Name. (#4960)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
925c1d77fc
commit
d840856093
@@ -16,9 +16,9 @@ NamespaceA.NamespaceB = NamespaceA.NamespaceB || {};
|
||||
* @enum
|
||||
*/
|
||||
NamespaceA.NamespaceB.EnumInNestedNS = {
|
||||
A: 0,
|
||||
B: 1,
|
||||
C: 2
|
||||
A: 0, 0: 'A',
|
||||
B: 1, 1: 'B',
|
||||
C: 2, 2: 'C'
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user