Skip to content

Commit 9af9083

Browse files
yashLadhabengl
authored andcommittedMar 20, 2022
src: use emplace_back instead of push_back
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>
1 parent 2335467 commit 9af9083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ int ProcessGlobalArgs(std::vector<std::string>* args,
807807
// is removed in V8.
808808
if (std::find(v8_args.begin(), v8_args.end(),
809809
"--no-harmony-import-assertions") == v8_args.end()) {
810-
v8_args.push_back("--harmony-import-assertions");
810+
v8_args.emplace_back("--harmony-import-assertions");
811811
}
812812

813813
auto env_opts = per_process::cli_options->per_isolate->per_env;

0 commit comments

Comments
 (0)