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 authored and danielleadams committed Apr 24, 2022
1 parent a84896e commit de3748a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
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 de3748a

Please sign in to comment.