Fix for array constructor with length is not eliminated#4294
Fix for array constructor with length is not eliminated#4294maifeeulasad wants to merge 5 commits intogoogle:masterfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Can you add unit tests for this new case alongside the existing unit tests of the similar In particular, including the |
|
@blickly absolutely. Planning to do it in the next 18 hours! |
|
@blickly care to take look into this please?
Current testing commands are: bazel test //:test/com/google/javascript/jscomp/AstAnalyzerTest --test_output=all
bazel test //:test/com/google/javascript/jscomp/PeepholeRemoveDeadCodeTest --test_filter=testArrayConstructor --test_output=allRunning the whole thing just to confirm CI doesn't complain any more with, if I find any issues I will resolve in upcoming commits bazel test //... --test_output=errors |
|
All tests are passing with bazel test //... --test_output=errors |
|
Can you put the new unit tests alongside and match the style of the existing tests of |
|
Does it require any additional attention? Please let me know if it requires any other modifications or anything like that. |
|
Sorry, I meant the tests in the test case called |
…teTest` google#4046 - frow review
|
All done! Care to take a look into it again for me please?? Eagerly waiting for feedbacks and open to comply! cc: @blickly |
|
If you remove all your changes to src/com/google/javascript/jscomp/AstAnalyzer.java, which of the tests fail? |
Nothing fails. Sorry I missed it, cause I jumped into it. due to the following lines, it is already working:
Do I raise another MR with just the tests introduced? Or do we continue here? What shall we do next?? cc: @blickly |

closes #4046
Tested w