Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 26, 2021
1 parent dd438d0 commit 63bac69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/babel-parser/src/plugin-utils.js
Expand Up @@ -122,9 +122,12 @@ export function validatePlugins(plugins: PluginList) {
hasPlugin(plugins, "asyncDoExpressions") &&
!hasPlugin(plugins, "doExpressions")
) {
throw new Error(
const error = new Error(
"'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.",
);
// $FlowIgnore
error.missingPlugins = "doExpressions"; // so @babel/core can provide better error message
throw error;
}
}

Expand Down
@@ -1 +1 @@
(async do {});
async do {};

0 comments on commit 63bac69

Please sign in to comment.