3 ms·
There is no ASI in “strict mode”. And modules are always in strict mode. Edit: I was mistaken about strict mode.
by CuriousSkeptic 6y ago
There is no ASI in “strict mode”. And modules are always in strict mode.
Edit: I was mistaken about strict mode.
- pygy_ 6y agoThat is just not true. You can write semi-less JS modules, strict mode and ASI are orthogonal.
- CuriousSkeptic 6y agoIndeed, just read the spec: https://tc39.es/ecma262/#sec-automatic-semicolon-insertion https://tc39.es/ecma262/#sec-automatic-semicolon-insertion No mention of strict mode in the section of ASI. Could have sworn that the ASI issues I’ve ran into in the past was resolved by using strict mode, not sure what I’ve got that from.