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 <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
yashLadha committed Mar 8, 2022
1 parent 4b198ff commit f2676b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Expand Up @@ -816,7 +816,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 f2676b9

Please sign in to comment.