Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix(error): remove throw in Error constructor to improve performance in IE11 #704

Merged
merged 2 commits into from
Apr 10, 2017

Conversation

JiaLiPassion
Copy link
Collaborator

@JiaLiPassion JiaLiPassion commented Mar 29, 2017

fix #691.

in pervious modification, error.stack will be constructed in Error constructor, this will impact the performance of IE very badly, so in this PR, the auto-throw is removed.

fix #698.

when Error.stackTraceLimit is set to 0, the stack will be undefined, so we don't need to generate longstacktrace when stackTraceLimit = 0, it will improve performance in some test environment (such as some karma-test-shim for IE)

…rror.stackTraceLimit = 0, add null check
@andtii
Copy link

andtii commented Apr 4, 2017

@mhevery Could we have a review of this soon? Pretty big performance issue

@mhevery mhevery merged commit 88d1a49 into angular:master Apr 10, 2017
@JiaLiPassion JiaLiPassion deleted the perf branch May 6, 2017 04:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

long-stack-trace throws error in InternetExplorer IE10 is very slow on 0.8.4
4 participants