Skip to content

Commit f2676b9

Browse files
authored
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 4b198ff commit f2676b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ int ProcessGlobalArgs(std::vector<std::string>* args,
816816
// is removed in V8.
817817
if (std::find(v8_args.begin(), v8_args.end(),
818818
"--no-harmony-import-assertions") == v8_args.end()) {
819-
v8_args.push_back("--harmony-import-assertions");
819+
v8_args.emplace_back("--harmony-import-assertions");
820820
}
821821

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

0 commit comments

Comments
 (0)