Skip to content

Commit

Permalink
make node 8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Feb 18, 2022
1 parent 177f21b commit c309266
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -48,15 +48,15 @@ let thrown;
try {
thrown = false;
[{}] = [,];
} catch {
} catch (e) {
thrown = true;
}
expect(thrown).toEqual(true);

try {
thrown = false;
[[]] = [,];
} catch {
} catch (e) {
thrown = true;
}
expect(thrown).toEqual(true);
Expand Up @@ -48,15 +48,15 @@ let thrown;
try {
thrown = false;
[{}] = [,];
} catch {
} catch (e) {
thrown = true;
}
expect(thrown).toEqual(true);

try {
thrown = false;
[[]] = [,];
} catch {
} catch (e) {
thrown = true;
}
expect(thrown).toEqual(true);
Expand Up @@ -44,7 +44,7 @@ let thrown;
try {
thrown = false;
babelHelpers.objectDestructuringEmpty();
} catch {
} catch (e) {
thrown = true;
}

Expand All @@ -53,7 +53,7 @@ expect(thrown).toEqual(true);
try {
thrown = false;
babelHelpers.objectDestructuringEmpty();
} catch {
} catch (e) {
thrown = true;
}

Expand Down

0 comments on commit c309266

Please sign in to comment.