Skip to content

Conversation

@kriskowal
Copy link
Member

Refs: #2990

Description

This change synchronizes the error repair mechanism in SES with changes made in #2990 to pass-style to gratutiously improve the resilience of that mechanism in the face of scripts that ran before SES.

Security Considerations

This reduces SES vulnerability to corruption from code that runs before SES. Replacing the TypeError constructor cannot confuse SES with regard to whether the platform produces type errors with own stack properties.

Scaling Considerations

None.

Documentation Considerations

None.

Testing Considerations

We cover versions of Node.js with and without own stack properties in CI and existing tests should be sufficient.

Compatibility Considerations

Programs that previously deceived SES may now fail when initializing SES. We consider such programs compromised and that incompatibility is a feature.

Upgrade Considerations

None.

@kriskowal kriskowal requested review from erights and mhofman November 4, 2025 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants