This repository was archived by the owner on Jan 11, 2023. It is now read-only.
bail early on closestExpression#3210
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3210 +/- ##
==========================================
- Coverage 47.94% 47.93% -0.02%
==========================================
Files 98 98
Lines 4063 4062 -1
Branches 838 836 -2
==========================================
- Hits 1948 1947 -1
Misses 2115 2115
Continue to review full report at Codecov.
|
3604443 to
1786ec2
Compare
codehag
approved these changes
Jun 23, 2017
| let location = Object.assign({}, get("node.loc", path)); | ||
|
|
||
| function getLocation(func) { | ||
| let location = Object.assign({}, func.location); |
Contributor
There was a problem hiding this comment.
maybe this should be
const location = { ...func.location };
Contributor
|
i will fix up the comment and the tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Associated Issue: #3209
This offers much needed perf wins when debugging large 10K+ files (a.k.a. the debugger.js file). Previously the perf times were a couple seconds for finding the closest expression and out of scope lines and now they're a couple hundred milliseconds or less...
It's amazing how much it pays to be lazy.
I got these rough stats from adding logging to our worker utils