rw_deno_core/flags.rs
1// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
3/// Pass the command line arguments to v8.
4/// The first element of args (which usually corresponds to the binary name) is
5/// ignored.
6/// Returns a vector of command line arguments that V8 did not understand.
7pub fn v8_set_flags(args: Vec<String>) -> Vec<String> {
8 v8::V8::set_flags_from_command_line(args)
9}