mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Fix handling of +/-inf defaults in TS/rust/go/dart codegen (#7588)
+/-inf were not being handled, and so invalid typescript was being generated when a float/double had an infinite default value. NaN was being handled correctly. Co-authored-by: Derek Bailey <derekbailey@google.com> Co-authored-by: Casper <casperneo@uchicago.edu>
This commit is contained in:
parent
001adf782d
commit
8aa8b9139e
41 changed files with 8217 additions and 4647 deletions
|
|
@ -148,6 +148,14 @@ void StringifyAnyFlatbuffersTypeTest() {
|
|||
signed_enum = -1
|
||||
long_enum_non_enum_default = 0
|
||||
long_enum_normal_default = 2
|
||||
nan_default = nan
|
||||
inf_default = inf
|
||||
positive_inf_default = inf
|
||||
infinity_default = inf
|
||||
positive_infinity_default = inf
|
||||
negative_inf_default = -inf
|
||||
negative_infinity_default = -inf
|
||||
double_inf_default = inf
|
||||
})";
|
||||
|
||||
// Call a generic function that has no specific knowledge of the flatbuffer we
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue