Skip to content

Conversation

@1999
Copy link
Contributor

@1999 1999 commented May 29, 2021

This is #2 thing that was a blocker for me while I was trying to start using @sentry/node in a Forge app. I investigated where this code comes from and I didn't find (or I didn't understand) a good reason why "console" needs to be be Node.JS-required instead of just using a global object which is available even in Node.JS 6.

The tests are not failing for me here so I assume this should be a safe change?

@1999 1999 requested a review from kamilogorek as a code owner May 29, 2021 21:58
@1999
Copy link
Contributor Author

1999 commented Jun 2, 2021

@kamilogorek hey, pretty sure this PR is a minor one. Could you please review it?

@kamilogorek kamilogorek enabled auto-merge (squash) June 4, 2021 18:52
@kamilogorek kamilogorek disabled auto-merge June 4, 2021 18:53
@kamilogorek kamilogorek merged commit 145221d into getsentry:master Jun 4, 2021
@kamilogorek
Copy link
Contributor

> console
> const c = require('console')
> console === c
true

They are effectively that same objects so it's safe to change it. Thanks!

@1999 1999 deleted the dsorin/DAC-XXX-console branch June 4, 2021 19:53
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