Skip to content

Commit d50edcc

Browse files
yashLadhadanielleadams
authored andcommitted
src: use emplace_back instead of push_back
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]>
1 parent 1497aa4 commit d50edcc

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)