LoginSignup
4
4

More than 5 years have passed since last update.

Babel6(babel-preset-es2015)以降は() => {}()がParse errorになる

Last updated at Posted at 2015-11-12
// ok
(() => {})()
(function(){})()
(function(){}())
// parse error
(() => {}())

これはES2015の仕様として正しい挙動で、むしろ5.xまで動いていたのがバグとのことです。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4