harmony 鸿蒙JSVM_InitOptions
JSVM_InitOptions
Overview
Options for initializing a JavaScript VM.
Since: 11
Related module: JSVM
Summary
Member Variables
Name | Description |
---|---|
const intptr_t * 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. |
int * 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. |
char ** argv | argv. |
bool removeFlags | Whether to remove flags. |
Member Variable Description
argc
int* JSVM_InitOptions::argc
Description 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.
argv
char** JSVM_InitOptions::argv
Description argv.
externalReferences
const intptr_t* JSVM_InitOptions::externalReferences
Description 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.
removeFlags
bool JSVM_InitOptions::removeFlags
Description Whether to remove flags.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙JSVM_CreateVMOptions
harmony 鸿蒙JSVM_ExtendedErrorInfo
harmony 鸿蒙JSVM_PropertyDescriptor
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦