Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: import and throw DOMException correctly #255

Conversation

achingbrain
Copy link
Contributor

The node-domexception module polyfills the global environment with the DOMExecption constructor but it doesn't export anything, so use a bare import to perform the polyfill then use the global constructor.

Adds a test to prevent regressions and removes the duplicate definition of generateCertificate.

The `node-domexception` module polyfills the global environment with
the DOMExecption constructor but it doesn't export anything, so use
a bare import to perform the polyfill then use the global constructor.

Adds a test to prevent regressions.
@@ -4,11 +4,11 @@ import RTCDataChannel from './RTCDataChannel.js';
import RTCIceCandidate from './RTCIceCandidate.js';
import { RTCDataChannelEvent, RTCPeerConnectionIceEvent } from './Events.js';
import RTCSctpTransport from './RTCSctpTransport.js';
import DOMException from 'node-domexception';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am OK with that

@murat-dogan murat-dogan merged commit a862c23 into murat-dogan:master Jun 9, 2024
1 check passed
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