Skip to content

Fix bug with error-based tests, closes #76#82

Merged
DmitrySharabin merged 1 commit intomainfrom
error-based-tests-bug
Feb 13, 2025
Merged

Fix bug with error-based tests, closes #76#82
DmitrySharabin merged 1 commit intomainfrom
error-based-tests-bug

Conversation

@DmitrySharabin
Copy link
Copy Markdown
Member

  • Classes are functions, so we need to check for a subclass first
  • Check if a class's prototype is an instance of Error, not class itself
  • Use class name in details to avoid something like function TypeError () { [native code] }

- Classes are functions, so we need to check for a subclass first
- Check if a class's prototype is an instance of Error, not class itself
- Use class name in details to avoid something like `function TypeError () { [native code] }`
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 13, 2025

Deploy Preview for h-test ready!

Name Link
🔨 Latest commit 5d8224b
🔍 Latest deploy log https://app.netlify.com/sites/h-test/deploys/67ae1da36477800008fc9c61
😎 Deploy Preview https://deploy-preview-82--h-test.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@DmitrySharabin DmitrySharabin merged commit 2bb91d9 into main Feb 13, 2025
@DmitrySharabin DmitrySharabin deleted the error-based-tests-bug branch February 13, 2025 17:37
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.

2 participants