File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1647,11 +1647,11 @@ static const auto throws_only_in_cjs_error_messages =
16471647 " await is only valid in async functions and "
16481648 " the top level bodies of modules" };
16491649
1650- static std::vector<std::string_view> maybe_top_level_await_errors = {
1651- // example: `func(await 1);`
1652- " missing ) after argument list" ,
1653- // example: `if(await 1)`
1654- " SyntaxError: Unexpected" };
1650+ static const auto maybe_top_level_await_errors =
1651+ std::array<std::string_view, 2 >{ // example: `func(await 1);`
1652+ " missing ) after argument list" ,
1653+ // example: `if(await 1)`
1654+ " SyntaxError: Unexpected" };
16551655
16561656// If cached_data is provided, it would be used for the compilation and
16571657// the on-disk compilation cache from NODE_COMPILE_CACHE (if configured)
You can’t perform that action at this time.
0 commit comments