instaceof with Exceptions is broken. #6771
Labels
bug
This issue is a bug.
p1
This is a high priority issue
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
potential-regression
Marking this issue as a potential regression to be checked by team member
Checkboxes for prior research
Describe the bug
We (AWS Amplify) got broken by smithy-lang/smithy-typescript#1484 .
This was dectected by our canary workflow here
https://github.com/aws-amplify/amplify-backend/actions/runs/12586737788/job/35081205621 .
Minimal repro:
Prints
The dummy S3ServiceException is not NoSuchKey error !!!
Regression Issue
SDK version number
"@aws-sdk/client-s3": "^3.721.0"
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.18.1
Reproduction Steps
Minimal repro:
Prints
Observed Behavior
Exceptions are misscategorized with instaceof operator
Expected Behavior
console.log(dummyS3ServiceException instanceof NoSuchKey)
returnsfalse
Possible Solution
Revert smithy-lang/smithy-typescript#1484
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: