Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.52.0
Framework Version
'@sentry/node': 8.52.0
Link to Sentry event
Reproduction Example/SDK Setup
No response
Steps to Reproduce
- Freeze prototypes of global objects.
Object.prototype
andError.prototype
are probably enough
Object.freeze(Object.prototype)
Object.freeze(Error.prototype)
- Initialize sentry and add a
beforeSend
function that returnsnull
- Capture an error
Expected Result
No errors are thrown from Sentry code
Actual Result
This error is thrown and reported:
TypeError
Cannot assign to read only property 'name' of object 'Error: before send for type `error` returned `null`, will not send event.'
Please see the attached Sentry event link for more details
Metadata
Metadata
Assignees
Type
Projects
Status
No status