babel: Unsupported syntax "catch { }"

npm build , use _jsdom@16.0.0@jsdom , build error

 } catch {
          ^
SyntaxError: Unexpected token {
    at createScript 

https://github.com/jsdom/jsdom/commit/d2ae947c60297a8ec404b4adbd78267bedd439f4?diff=split

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

jsdom@16 requires node >= 10, if you have the same issue, please update node to version 10. Closing this issue as it is not relevant to babel.