feat(40197): No "did you mean to call" error when invocation is part of a logical expression#40260
Conversation
1899aa1 to
ce4dcf3
Compare
|
@typescript-bot test this |
|
Heya @RyanCavanaugh, I've started to run the extended test suite on this PR at ce4dcf3. You can monitor the build here. |
|
Heya @RyanCavanaugh, I've started to run the parallelized community code test suite on this PR at ce4dcf3. You can monitor the build here. |
|
The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master. |
RyanCavanaugh
left a comment
There was a problem hiding this comment.
RWC analysis
typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?This is OK
var myUid = process.getuid && process.getuid()This should be fixed; if the right operand refers to the function anywhere, it shouldn't be an error (same as for if)
70e03d8 to
b08d886
Compare
|
@typescript-bot pack this |
|
Heya @DanielRosenwasser, I've started to run the extended test suite on this PR at b08d886. You can monitor the build here. |
|
Heya @DanielRosenwasser, I've started to run the parallelized community code test suite on this PR at b08d886. You can monitor the build here. |
|
Heya @DanielRosenwasser, I've started to run the tarball bundle task on this PR at b08d886. You can monitor the build here. |
|
Heya @DanielRosenwasser, I've started to run the perf test suite on this PR at b08d886. You can monitor the build here. Update: The results are in! |
|
Heya @DanielRosenwasser, I've started to run the parallelized Definitely Typed test suite on this PR at b08d886. You can monitor the build here. |
|
@DanielRosenwasser Here they are:Comparison Report - master..40260
System
Hosts
Scenarios
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@typescript-bot test this |
|
Heya @DanielRosenwasser, I've started to run the extended test suite on this PR at b08d886. You can monitor the build here. |
|
Heya @DanielRosenwasser, I've started to run the parallelized community code test suite on this PR at b08d886. You can monitor the build here. |
|
Heya @DanielRosenwasser, I've started to run the parallelized Definitely Typed test suite on this PR at b08d886. You can monitor the build here. |
sandersn
left a comment
There was a problem hiding this comment.
Can you also add a test with a nested || to show what happens there?
typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
b08d886 to
cc1768c
Compare
sandersn
left a comment
There was a problem hiding this comment.
Can you try calling the uncalled functions in the emitter, since that was probably the original intent?
|
@DanielRosenwasser points out that this is a breaking change, so needs to wait until 4.2. I'll revert it for now and then merge once 4.1 has got its own branch. |
|
OK, it's reverted. I'll revert the revert once release-4.1 is created and we are merging features into master again. |
|
@sandersn Do I need to re-open PR? |
|
|
|
Right, I just made a TODO to revert the revert manually. |
Fixes #40197