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

TypeError: this[writeSym] is not a function #2128

Open
JasonMan34 opened this issue Feb 13, 2025 · 0 comments
Open

TypeError: this[writeSym] is not a function #2128

JasonMan34 opened this issue Feb 13, 2025 · 0 comments

Comments

@JasonMan34
Copy link

Following this issue, here is a small reproducible example:

import pino from 'pino'

const logger = pino()
const methods = { info: logger.info }
methods.info('Hello')

This answer claims that this behavior is expected, which for me raises the question - why?
Is this behavior retained on purpose or is it a matter of "we are aware of it, but it's not prioritized to fix right now"?

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

No branches or pull requests

1 participant