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

Polyfills Bailout: Part 1 #2243

Merged
merged 3 commits into from
Sep 20, 2019
Merged

Polyfills Bailout: Part 1 #2243

merged 3 commits into from
Sep 20, 2019

Conversation

kamilogorek
Copy link
Contributor

No description provided.

@kamilogorek kamilogorek requested a review from HazAT September 16, 2019 15:15
@@ -918,10 +918,6 @@ TraceKit._computeStackTrace = (function _computeStackTraceWrapper() {
}

function popFrames(stacktrace: any, popSize: number): any {
if (Number.isNaN(popSize)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done on purpose. It's safe to remove.

@@ -224,9 +224,6 @@ export class Scope implements ScopeInterface {
*/
public static clone(scope?: Scope): Scope {
const newScope = new Scope();
Object.assign(newScope, scope, {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no clue why we had it here if we manually assign all the properties below anyway.
Same goes for _scopeListeners, which is initialized in the constructor and we don't have to override it if we skip Object.assign.

@kamilogorek kamilogorek changed the title Polyfills Bailout Part. 1 Polyfills Bailout: Part 1 Sep 16, 2019
@getsentry-bot
Copy link
Contributor

getsentry-bot commented Sep 16, 2019

Warnings
⚠️ Please add a changelog entry for your changes.
Messages
📖 ✅ TSLint passed
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 16.1797 kB) (ES6: 15.3604 kB)

Generated by 🚫 dangerJS against 5b0c253

@kamilogorek kamilogorek merged commit baf12ae into master Sep 20, 2019
@kamilogorek kamilogorek deleted the polyfills-bailout branch September 20, 2019 10: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.

2 participants