mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 08:48:52 +00:00
[ISSUE-6268] returns NaN insteadof nan (#7498)
* returns NaN insteadof nan * clang-format-git
This commit is contained in:
committed by
GitHub
parent
37e37b8cad
commit
5634dc3d0d
@@ -439,7 +439,9 @@ class TsGenerator : public BaseGenerator {
|
||||
return "BigInt('" + value.constant + "')";
|
||||
}
|
||||
|
||||
default: return value.constant;
|
||||
default:
|
||||
if (value.constant == "nan") { return "NaN"; }
|
||||
return value.constant;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user