When is it dangerous to line break after a close parenthesis in Javascript?

后端 未结 4 1815
一生所求
一生所求 2021-01-18 03:37
  • What are the dangers of breaking a line of long code up at a close parenthesis?

  • When could a semicolon be automatically inserted by Javascript (pres

4条回答
  •  醉梦人生
    2021-01-18 04:17

    It is safe.

    I took a quick look at the semicolon insertion rules in the spec (3rd edition), and for function declarations it is OK.

提交回复
热议问题