1# JSVM_InitOptions
2
3
4## Overview
5
6Options for initializing a JavaScript VM.
7
8**Since**: 11
9
10**Related module**: [JSVM](_j_s_v_m.md)
11
12
13## Summary
14
15
16### Member Variables
17
18| Name| Description|
19| -------- | -------- |
20| const intptr_t \* [externalReferences](#externalreferences) | Optional. A raw address array with a nullptr at the end in the embedder, which can be matched by the VM during serialization and can be used for deserialization. This array and its contents must remain valid throughout the lifecycle of the VM instance. |
21| int \* [argc](#argc) | VM flag. If **removeFlags** is **true**, the identified flags are removed from (argc, argv). Note that these flags are now only available to V8 VMs. They are mainly used for development. Do not use them in the production environment because they may not take effect if the VM is different from the development environment. |
22| char \*\* [argv](#argv) | argv. |
23| bool [removeFlags](#removeflags) | Whether to remove flags. |
24
25
26## Member Variable Description
27
28
29### argc
30
31```
32int* JSVM_InitOptions::argc
33```
34**Description**
35VM flag. If **removeFlags** is **true**, the identified flags are removed from (argc, argv). Note that these flags are now only available to V8 VMs. They are mainly used for development. Do not use them in the production environment because they may not take effect if the VM is different from the development environment.
36
37
38### argv
39
40```
41char** JSVM_InitOptions::argv
42```
43**Description**
44argv.
45
46
47### externalReferences
48
49```
50const intptr_t* JSVM_InitOptions::externalReferences
51```
52**Description**
53Optional. A raw address array with a nullptr at the end in the embedder, which can be matched by the VM during serialization and can be used for deserialization. This array and its contents must remain valid throughout the lifecycle of the VM instance.
54
55
56### removeFlags
57
58```
59bool JSVM_InitOptions::removeFlags
60```
61**Description**
62Whether to remove flags.
63