aws-sdk-js-v3
aws-sdk-js-v3 copied to clipboard
[eventstream-marshaller]: Int64 does not throw error for 2^63
Describe the bug
Int64 does not throw error for when number is slightly larger than 2^63-1
We use the test code with value for 2^63
Expected Behavior
Throws error with following template:
${number} is too large (or, if negative, too small) to represent as an Int64
Current Behavior
Does not throw error
Reproduction Steps
import { Int64 } from "@aws-sdk/eventstream-marshaller";
// Below code doesn't throw error.
Int64.fromNumber(9_223_372_036_854_775_807);
Possible Solution
No response
Additional Information/Context
No response
SDK version used
@aws-sdk/[email protected]