Nicolò Ribaudo ce6cc4eb55
Unify parens printing for postfix-like expressions (#11382)
* Unify parens printing for postfix exprs: (), [...], !

* Also move template tags handling

* Add tagged template test

* isPostfixExpression -> hasPostfixPart
2020-04-07 21:36:35 +02:00

13 lines
230 B
JavaScript

var _ref, _;
function then(fn) {
return async value => {
return fn(await value);
};
}
var result = (_ref = (_ = 1, (async x => (await x) + 1)(_)), then(x => x + 1)(_ref));
result.then(val => {
expect(val).toBe(3);
});