Files
test-repo/tests/binary-expressions/return.js
T
Lucas Duailibe bba7dcf498 Fix break on conditional expressions inside return
Fixes #2777

Since we can't break after `return` and don't add `()` around
ConditionalExpressions' tests, we end up with some weird indentation when
breaking.
2017-09-10 04:13:47 -06:00

16 lines
394 B
JavaScript

function foo() {
return this.hasPlugin("dynamicImports") && this.lookahead().type === tt.parenLeft.right;
}
function foo() {
return this.hasPlugin("dynamicImports") && this.lookahead().type === tt.parenLeft.right
? true
: false;
}
function foo() {
return this.calculate().compute().first.numberOfThings > this.calculate().compute().last.numberOfThings
? true
: false;
}