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(node): Handle node build without inspector in LocalVariables integration #6780

Merged
merged 2 commits into from Jan 16, 2023

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Jan 16, 2023

Closes #6769

I didn't use process.config.variables.v8_enable_inspector since it appears undocumented and wrapping the loading in try/catch feels more future proof.

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

Can we test for this?

@@ -244,7 +244,25 @@ describe('LocalVariables', () => {
expect(eventProcessor).toBeUndefined();
});

it.only('Should cache identical uncaught exception events', async () => {
Copy link
Collaborator Author

@timfish timfish Jan 16, 2023

Choose a reason for hiding this comment

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

Ooops, this only shouldn't have been there!

Copy link
Member

Choose a reason for hiding this comment

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

good catch!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think there's a lint for this 🤔

@AbhiPrasad AbhiPrasad merged commit 06b3455 into getsentry:master Jan 16, 2023
@timfish timfish deleted the fix/handle-no-inspector branch January 17, 2023 10:57
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.

Error [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available when using vercel/pkg
2 participants