Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

checking existence of global objects #4

Merged
merged 1 commit into from
Feb 15, 2018
Merged

Conversation

Jabher
Copy link
Contributor

@Jabher Jabher commented Feb 15, 2018

I'm really tired to skip all this try-catches when selecting "pause on caught errors" option :)
Also, this is significantly increasing performance of function(~0.52ms -> ~0.22ms)

Copy link
Contributor

@danfinlay danfinlay left a comment

Choose a reason for hiding this comment

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

That's a reasonable improvement, thanks! Glad your frustration gave birth to an optimization :)

@danfinlay danfinlay merged commit af1d5c1 into MetaMask:master Feb 15, 2018
Jabher added a commit to Jabher/metamask-extension that referenced this pull request May 8, 2018
Jabher added a commit to Jabher/metamask-extension that referenced this pull request May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants