Skip to content

Commit

Permalink
src: use emplace_back instead of push_back
Browse files Browse the repository at this point in the history
PR-URL: #42159
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
yashLadha authored and danielleadams committed Apr 24, 2022
1 parent 1497aa4 commit d50edcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ int ProcessGlobalArgs(std::vector<std::string>* args,
// is removed in V8.
if (std::find(v8_args.begin(), v8_args.end(),
"--no-harmony-import-assertions") == v8_args.end()) {
v8_args.push_back("--harmony-import-assertions");
v8_args.emplace_back("--harmony-import-assertions");
}

auto env_opts = per_process::cli_options->per_isolate->per_env;
Expand Down

0 comments on commit d50edcc

Please sign in to comment.