mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 14:41:10 +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 + "')";
|
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