vscode
vscode copied to clipboard
Javascript short circuit syntax not respected by syntax highlighting
- VSCode Version: 1.0.0 fa6d0
- OS Version: Windows 10
Steps to Reproduce:
- Write a function in a javascript function with the following definition:
function test(err) {
err && return;
console.log('error');
}
Even though this syntax is valid, VS code underlines the return statement indicating that it expects an expression and that the console.log code is unreachable.
This issue was moved to Microsoft/TypeScript#8530