From f0285dc3d2ba85701f1b1b6b7891bb438c8f8ea7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2020 14:58:58 +0300 Subject: [PATCH] Build(deps): Bump @babel/parser from 7.10.4 to 7.10.5 (#8762) * Build(deps): Bump @babel/parser from 7.10.4 to 7.10.5 Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.10.4 to 7.10.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.10.5/packages/babel-parser) Signed-off-by: dependabot[bot] * Revert changes from #8688 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fisker --- package.json | 2 +- src/language-js/parser-babel.js | 13 +------------ .../misc/errors/js/__snapshots__/jsfmt.spec.js.snap | 8 ++++++-- yarn.lock | 7 +------ 4 files changed, 9 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 21adb63b1..361f8f27e 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "dependencies": { "@angular/compiler": "10.0.3", "@babel/code-frame": "7.10.4", - "@babel/parser": "7.10.4", + "@babel/parser": "7.10.5", "@glimmer/syntax": "0.54.1", "@iarna/toml": "2.2.5", "@typescript-eslint/typescript-estree": "3.6.1", diff --git a/src/language-js/parser-babel.js b/src/language-js/parser-babel.js index cb242db28..17a09119f 100644 --- a/src/language-js/parser-babel.js +++ b/src/language-js/parser-babel.js @@ -82,18 +82,7 @@ function createParse(parseMethod, ...pluginCombinations) { babelOptions({ sourceType, extraPlugins }) ) ); - } catch (_error) { - // babel@7.10.4 throws `undefined`, when parsing - // ```js - // alert( - //