mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
Ensure optional arrays, arrays with defaults, and strings with defaults are supported (#8896)
Fixing issues with generated ts/js
This commit is contained in:
@@ -2809,7 +2809,8 @@ bool Parser::SupportsOptionalScalars() const {
|
||||
bool Parser::SupportsDefaultVectorsAndStrings() const {
|
||||
static FLATBUFFERS_CONSTEXPR unsigned long supported_langs =
|
||||
IDLOptions::kRust | IDLOptions::kSwift | IDLOptions::kNim |
|
||||
IDLOptions::kCpp | IDLOptions::kBinary | IDLOptions::kJson;
|
||||
IDLOptions::kCpp | IDLOptions::kBinary | IDLOptions::kJson |
|
||||
IDLOptions::kTs;
|
||||
return !(opts.lang_to_generate & ~supported_langs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user