harmony 鸿蒙JSVM_InitOptions

  • 2025-06-12
  • 浏览 (2)

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 鸿蒙Common Capabilities

harmony 鸿蒙_j_s_v_m

harmony 鸿蒙JSVM_CallbackStruct

harmony 鸿蒙JSVM_CreateVMOptions

harmony 鸿蒙JSVM_ExtendedErrorInfo

harmony 鸿蒙JSVM_HeapStatistics

harmony 鸿蒙JSVM_PropertyDescriptor

harmony 鸿蒙JSVM_PropertyHandlerConfigurationStruct

harmony 鸿蒙JSVM_ScriptOrigin

harmony 鸿蒙JSVM_TypeTag

0  赞