From c3092668a264e85d289e28f988443080dc0de551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Mon, 14 Feb 2022 09:38:16 -0500 Subject: [PATCH] make node 8 happy --- .../test/fixtures/destructuring/init-hole/exec.js | 4 ++-- .../test/fixtures/destructuring/init-hole/input.js | 4 ++-- .../test/fixtures/destructuring/init-hole/output.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/exec.js b/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/exec.js index 0792a1c6b03b..4ee0994ece01 100644 --- a/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/exec.js +++ b/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/exec.js @@ -48,7 +48,7 @@ let thrown; try { thrown = false; [{}] = [,]; -} catch { +} catch (e) { thrown = true; } expect(thrown).toEqual(true); @@ -56,7 +56,7 @@ expect(thrown).toEqual(true); try { thrown = false; [[]] = [,]; -} catch { +} catch (e) { thrown = true; } expect(thrown).toEqual(true); diff --git a/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/input.js b/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/input.js index 0792a1c6b03b..4ee0994ece01 100644 --- a/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/input.js +++ b/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/input.js @@ -48,7 +48,7 @@ let thrown; try { thrown = false; [{}] = [,]; -} catch { +} catch (e) { thrown = true; } expect(thrown).toEqual(true); @@ -56,7 +56,7 @@ expect(thrown).toEqual(true); try { thrown = false; [[]] = [,]; -} catch { +} catch (e) { thrown = true; } expect(thrown).toEqual(true); diff --git a/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/output.js b/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/output.js index 7a75810952c0..c29f6208ef72 100644 --- a/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/output.js +++ b/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/init-hole/output.js @@ -44,7 +44,7 @@ let thrown; try { thrown = false; babelHelpers.objectDestructuringEmpty(); -} catch { +} catch (e) { thrown = true; } @@ -53,7 +53,7 @@ expect(thrown).toEqual(true); try { thrown = false; babelHelpers.objectDestructuringEmpty(); -} catch { +} catch (e) { thrown = true; }