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 TypeError: domain.enter is not a function #183

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

Peeja
Copy link
Contributor

@Peeja Peeja commented Jul 8, 2024

An EventEmitter subclass must not use the domain property. Having a domain present triggers Node's deprecated domain error handling behavior, which, as it's not actually loaded, causes a TypeError.

Instead, delegate to a separate EventEmitter object, so our _OrmScope can safely keep its domain property.

nodejs/node-v0.x-archive#3922

An `EventEmitter` subclass must not use the `domain` property. Having a
`domain` present triggers Node's deprecated `domain` error handling
behavior, which, as it's not actually loaded, causes a `TypeError`.

Instead, delegate to a separate `EventEmitter` object, so our
`_OrmScope` can safely keep its `domain` property.

nodejs/node-v0.x-archive#3922
Copy link

vercel bot commented Jul 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
m-ld-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2024 8:50pm

@gsvarovsky gsvarovsky merged commit f2bc60d into edge Jul 12, 2024
5 checks passed
@gsvarovsky gsvarovsky deleted the fix-eventemitter-domain branch July 12, 2024 16:45
@gsvarovsky
Copy link
Member

Published in @m-ld/[email protected], thanks Petra!

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