aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

[eventstream-marshaller]: Int64 does not throw error for 2^63

Open trivikr opened this issue 2 years ago • 0 comments

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]

Environment details (OS name and version, etc.)

[email protected]

trivikr avatar Jun 28 '22 16:06 trivikr