Skip to content

Conversation

@naseemkullah
Copy link
Contributor

just 4 fun

@naseemkullah naseemkullah force-pushed the refactor-extraerrordata branch from ba2c9c1 to 2385359 Compare October 1, 2021 15:10
@naseemkullah naseemkullah changed the title refactor extraerrorata refactor(integrations): extraerrorata Oct 1, 2021
@naseemkullah naseemkullah force-pushed the refactor-extraerrordata branch from 2385359 to bf3f289 Compare October 1, 2021 15:39
try {
const nativeKeys = ['name', 'message', 'stack', 'line', 'column', 'fileName', 'lineNumber', 'columnNumber'];
const errorKeys = Object.getOwnPropertyNames(error).filter(key => nativeKeys.indexOf(key) === -1);
const errorKeys = Object.getOwnPropertyNames(error).filter(key => !nativeKeys.includes(key));
Copy link
Member

Choose a reason for hiding this comment

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

Think we can’t use .includes because of IE, but might be taken care of when transpiled to the es5 bundle. @kamilogorek can you confirm?

Copy link
Contributor

Choose a reason for hiding this comment

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

Exactly, we cannot. It's not transpiled, so we'd end up with requiring people to add polyfills for it.

@naseemkullah naseemkullah changed the title refactor(integrations): extraerrorata refactor(integrations): extraerrordata Oct 1, 2021
@naseemkullah naseemkullah force-pushed the refactor-extraerrordata branch from bf3f289 to b1f0f02 Compare October 4, 2021 12:11
@kamilogorek kamilogorek merged commit d1c471f into getsentry:master Oct 4, 2021
@naseemkullah naseemkullah deleted the refactor-extraerrordata branch October 4, 2021 12:22
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.

3 participants