// ok
(() => {})()
(function(){})()
(function(){}())
// parse error
(() => {}())
これはES2015の仕様として正しい挙動で、むしろ5.xまで動いていたのがバグとのことです。
Go to list of users who liked
More than 5 years have passed since last update.
// ok
(() => {})()
(function(){})()
(function(){}())
// parse error
(() => {}())
これはES2015の仕様として正しい挙動で、むしろ5.xまで動いていたのがバグとのことです。
Register as a new user and use Qiita more conveniently
Go to list of users who liked