Skip to content

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?

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