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: nodejs#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 authored and xtx1130 committed Apr 25, 2022
1 parent eecf7db commit b3ceb5f
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 @@ -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 b3ceb5f

Please sign in to comment.