-
Notifications
You must be signed in to change notification settings - Fork 12.9k
feat(40197): No "did you mean to call" error when invocation is part of a logical expression #40260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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