Skip to content

Latest commit

 

History

History
96 lines (72 loc) · 1.87 KB

CHANGELOG.unreleased.md

File metadata and controls

96 lines (72 loc) · 1.87 KB
  • JavaScript: Fix closure compiler typecasts ([#5947] by [@jridgewell])

    If a closing parenthesis follows after a typecast in an inner expression, the typecast would wrap everything to the that following parenthesis.

    // Input
    test(/** @type {!Array} */(arrOrString).length);
    test(/** @type {!Array} */((arrOrString)).length + 1);
    
    // Output (Prettier stable)
    test(/** @type {!Array} */ (arrOrString.length));
    test(/** @type {!Array} */ (arrOrString.length + 1));
    
    // Output (Prettier master)
    test(/** @type {!Array} */ (arrOrString).length);
    test(/** @type {!Array} */ (arrOrString).length + 1);
  • Handlebars: Fix {{else}}{{#if}} into {{else if}} merging ([#6080] by [@dcyriller])