-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
@@ -918,10 +918,6 @@ TraceKit._computeStackTrace = (function _computeStackTraceWrapper() { | |||
} | |||
|
|||
function popFrames(stacktrace: any, popSize: number): any { | |||
if (Number.isNaN(popSize)) { |
There was a problem hiding this comment.
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, { |
There was a problem hiding this comment.
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
.
dd04bf4
to
5b0c253
Compare
No description provided.