Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Fixing Bug #2451 - AssignmentExpression Functions in search#2452

Merged
jasonLaster merged 3 commits into
firefox-devtools:masterfrom
ruturajv:bug-2451-empty-assignment-function-search
Mar 26, 2017
Merged

Fixing Bug #2451 - AssignmentExpression Functions in search#2452
jasonLaster merged 3 commits into
firefox-devtools:masterfrom
ruturajv:bug-2451-empty-assignment-function-search

Conversation

@ruturajv

Copy link
Copy Markdown
Contributor

Associated Issue: #2451

Summary of Changes

  • added assignementExpression code
  • added and modified test cases

- added assignementExpression code
- added and modified test cases
@codecov

codecov Bot commented Mar 25, 2017

Copy link
Copy Markdown

Codecov Report

Merging #2452 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2452      +/-   ##
==========================================
+ Coverage   54.34%   54.43%   +0.09%     
==========================================
  Files          52       52              
  Lines        2015     2017       +2     
  Branches      390      391       +1     
==========================================
+ Hits         1095     1098       +3     
+ Misses        920      919       -1
Impacted Files Coverage Δ
src/utils/parser/utils.js 95.79% <100%> (+0.92%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83a835e...2b1c242. Read the comment docs.

@jasonLaster jasonLaster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I added a couple tweaks feel free to discuss any change.

Comment thread src/utils/tests/parser.js

child = function() {};

(function () { 2 })();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I added this test to get our coverage up to 100%

Comment thread src/utils/parser/utils.js
return parent.left.property.name;
}

return parent.left.name;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I tweaked this block to:

  • remove isFunction(parent.right) which i believe is unnecessary
  • prioritize the MemberExpression which is consistent with the other type checks first

@jasonLaster jasonLaster merged commit eef1925 into firefox-devtools:master Mar 26, 2017
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