diff --git a/ark_runtime/jsvm/jsvm.h b/ark_runtime/jsvm/jsvm.h index 6f9c77cd10db63df4a881208561c118d5622847c..f9d1acd1486bd5c8e17aa7f6cf7a2f43e88d56b3 100644 --- a/ark_runtime/jsvm/jsvm.h +++ b/ark_runtime/jsvm/jsvm.h @@ -112,7 +112,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Init(const JSVM_InitOptions* options); * * @param options: The options for create the VM instance. * @param result: The new VM instance. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateVM(const JSVM_CreateVMOptions* options, @@ -122,7 +123,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateVM(const JSVM_CreateVMOptions* options, * @brief Destroys VM instance. * * @param vm: The VM instance to be Destroyed. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DestroyVM(JSVM_VM vm); @@ -132,7 +134,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DestroyVM(JSVM_VM vm); * * @param vm: The VM instance to open scope for. * @param result: The new VM scope. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_OpenVMScope(JSVM_VM vm, @@ -143,7 +146,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_OpenVMScope(JSVM_VM vm, * * @param vm: The VM instance to close scope for. * @param scope: The VM scope to be closed. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CloseVMScope(JSVM_VM vm, @@ -156,7 +160,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CloseVMScope(JSVM_VM vm, * @param propertyCount: The number of elements in the properties array. * @param properties: The array of property descriptor. * @param result: The new environment created. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateEnv(JSVM_VM vm, @@ -170,7 +175,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateEnv(JSVM_VM vm, * @param vm: The VM instance that the env will be created in. * @param index: The index of the environment in the snapshot. * @param result: The new environment created. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateEnvFromSnapshot(JSVM_VM vm, @@ -181,7 +187,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateEnvFromSnapshot(JSVM_VM vm, * @brief This function destroys the environment. * * @param env: The environment to be destroyed. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DestroyEnv(JSVM_Env env); @@ -191,7 +198,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DestroyEnv(JSVM_Env env); * * @param env: The environment that the JSVM-API call is invoked under. * @param result: The new environment scope. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_OpenEnvScope(JSVM_Env env, @@ -202,7 +210,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_OpenEnvScope(JSVM_Env env, * * @param env: The environment that the JSVM-API call is invoked under. * @param scope: The environment scope to be closed. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CloseEnvScope(JSVM_Env env, @@ -229,7 +238,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetVM(JSVM_Env env, * @param eagerCompile: Whether to compile the script eagerly. * @param cacheRejected: Whether the code cache rejected by compilation. * @param result: The compiled script. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CompileScript(JSVM_Env env, @@ -252,7 +262,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CompileScript(JSVM_Env env, * @param cacheRejected: Whether the code cache rejected by compilation. * @param origin: The information of source code. * @param result: The compiled script. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_CompileScriptWithOrigin(JSVM_Env env, @@ -271,7 +282,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CompileScriptWithOrigin(JSVM_Env env, * @param script: A compiled script to create code cache for. * @param data: The data of the code cache. * @param length: The length of the code cache data. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateCodeCache(JSVM_Env env, @@ -305,7 +317,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_RunScript(JSVM_Env env, * @param finalizeCb: The function to call when the environment is being torn down. The function receives * data so that it might free it. JSVM_Finalize provides more details. * @param finalizeHint: Optional hint to pass to the finalize callback during collection. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SetInstanceData(JSVM_Env env, @@ -320,7 +333,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SetInstanceData(JSVM_Env env, * @param env: The environment that the JSVM-API call is invoked under. * @param data: The data item that was previously associated with the currently running JSVM environment by * a call to OH_JSVM_SetInstanceData(). - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetInstanceData(JSVM_Env env, @@ -332,7 +346,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetInstanceData(JSVM_Env env, * * @param env: The environment that the JSVM-API call is invoked under. * @param result: The JSVM_ExtendedErrorInfo structure with more information about the error. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetLastErrorInfo(JSVM_Env env, @@ -343,7 +358,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetLastErrorInfo(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param error: The JavaScript value to be thrown. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Throw(JSVM_Env env, @@ -355,7 +371,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Throw(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param code: Optional error code to be set on the error. * @param msg: C string representing the text to be associated with the error. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowError(JSVM_Env env, @@ -368,7 +385,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowError(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param code: Optional error code to be set on the error. * @param msg: C string representing the text to be associated with the error. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowTypeError(JSVM_Env env, @@ -381,7 +399,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowTypeError(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param code: Optional error code to be set on the error. * @param msg: C string representing the text to be associated with the error. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowRangeError(JSVM_Env env, @@ -394,7 +413,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowRangeError(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param code: Optional error code to be set on the error. * @param msg: C string representing the text to be associated with the error. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowSyntaxError(JSVM_Env env, @@ -408,7 +428,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowSyntaxError(JSVM_Env env, * @param value: The JSVM_Value to be checked. * @param result: Boolean value that is set to true if JSVM_Value represents an error, * false otherwise. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsError(JSVM_Env env, @@ -422,7 +443,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsError(JSVM_Env env, * @param code: Optional JSVM_Value with the string for the error code to be associated with the error. * @param msg: JSVM_Value that references a JavaScript string to be used as the message for the Error. * @param result: JSVM_Value representing the error created. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateError(JSVM_Env env, @@ -437,7 +459,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateError(JSVM_Env env, * @param code: Optional JSVM_Value with the string for the error code to be associated with the error. * @param msg: JSVM_Value that references a JavaScript string to be used as the message for the Error. * @param result: JSVM_Value representing the error created. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateTypeError(JSVM_Env env, @@ -452,7 +475,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateTypeError(JSVM_Env env, * @param code: Optional JSVM_Value with the string for the error code to be associated with the error. * @param msg: JSVM_Value that references a JavaScript string to be used as the message for the Error. * @param result: JSVM_Value representing the error created. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateRangeError(JSVM_Env env, @@ -467,7 +491,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateRangeError(JSVM_Env env, * @param code: Optional JSVM_Value with the string for the error code to be associated with the error. * @param msg: JSVM_Value that references a JavaScript string to be used as the message for the Error. * @param result: JSVM_Value representing the error created. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSyntaxError(JSVM_Env env, @@ -480,7 +505,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSyntaxError(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param result: The exception if one is pending, NULL otherwise. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetAndClearLastException(JSVM_Env env, @@ -491,7 +517,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetAndClearLastException(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param result: Boolean value that is set to true if an exception is pending. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsExceptionPending(JSVM_Env env, @@ -502,7 +529,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsExceptionPending(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param result: JSVM_Value representing the new scope. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_OpenHandleScope(JSVM_Env env, @@ -514,7 +542,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_OpenHandleScope(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param scope: JSVM_Value representing the scope to be closed. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CloseHandleScope(JSVM_Env env, @@ -525,7 +554,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CloseHandleScope(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param result: JSVM_Value representing the new scope. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_OpenEscapableHandleScope(JSVM_Env env, @@ -537,7 +567,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_OpenEscapableHandleScope(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param scope: JSVM_Value representing the scope to be closed. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CloseEscapableHandleScope(JSVM_Env env, @@ -552,7 +583,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CloseEscapableHandleScope(JSVM_Env env, * @param scope: JSVM_Value representing the current scope. * @param escapee: JSVM_Value representing the JavaScript Object to be escaped. * @param result: JSVM_Value representing the handle to the escaped Object in the outer scope. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_EscapeHandle(JSVM_Env env, @@ -567,7 +599,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_EscapeHandle(JSVM_Env env, * @param value: The JSVM_Value for which a reference is being created. * @param initialRefcount: Initial reference count for the new reference. * @param result: JSVM_Ref pointing to the new reference. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateReference(JSVM_Env env, @@ -580,7 +613,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateReference(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param ref: JSVM_Ref to be deleted. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteReference(JSVM_Env env, @@ -593,7 +627,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteReference(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param ref: JSVM_Ref for which the reference count will be incremented. * @param result: The new reference count. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ReferenceRef(JSVM_Env env, @@ -607,7 +642,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ReferenceRef(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param ref: JSVM_Ref for which the reference count will be decremented. * @param result: The new reference count. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ReferenceUnref(JSVM_Env env, @@ -621,7 +657,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ReferenceUnref(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param ref: The JSVM_Ref for which the corresponding value is being requested. * @param result: The JSVM_Value referenced by the JSVM_Ref. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetReferenceValue(JSVM_Env env, @@ -633,7 +670,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetReferenceValue(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param result: A JSVM_Value representing a JavaScript Array. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArray(JSVM_Env env, @@ -648,7 +686,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArray(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param length: The initial length of the Array. * @param result: A JSVM_Value representing a JavaScript Array. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArrayWithLength(JSVM_Env env, @@ -667,7 +706,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArrayWithLength(JSVM_Env env, * @param byteLength: The length in bytes of the array buffer to create. * @param data: Pointer to the underlying byte buffer of the ArrayBuffer.data can optionally be ignored by passing NULL. * @param result: A JSVM_Value representing a JavaScript Array. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArraybuffer(JSVM_Env env, @@ -682,7 +722,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArraybuffer(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param time: ECMAScript time value in milliseconds since 01 January, 1970 UTC. * @param result: A JSVM_Value representing a JavaScript Date. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDate(JSVM_Env env, @@ -702,7 +743,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDate(JSVM_Env env, * more details. * @param finalizeHint: Optional hint to pass to the finalize callback during collection. * @param result: A JSVM_Value representing an external value. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateExternal(JSVM_Env env, @@ -716,7 +758,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateExternal(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param result: A JSVM_Value representing a JavaScript Object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateObject(JSVM_Env env, @@ -729,7 +772,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateObject(JSVM_Env env, * @param description: Optional JSVM_Value which refers to a JavaScript string to be set as the description * for the symbol. * @param result: A JSVM_Value representing a JavaScript symbol. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSymbol(JSVM_Env env, @@ -744,7 +788,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSymbol(JSVM_Env env, * @param utf8description: UTF-8 C string representing the text to be used as the description for the symbol. * @param length: The length of the description string in bytes, or JSVM_AUTO_LENGTH if it is null-terminated. * @param result: A JSVM_Value representing a JavaScript symbol. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SymbolFor(JSVM_Env env, @@ -764,7 +809,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SymbolFor(JSVM_Env env, * @param arraybuffer: ArrayBuffer underlying the typed array. * @param byteOffset: The byte offset within the ArrayBuffer from which to start projecting the TypedArray. * @param result: A JSVM_Value representing a JavaScript TypedArray - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateTypedarray(JSVM_Env env, @@ -786,7 +832,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateTypedarray(JSVM_Env env, * @param arraybuffer: ArrayBuffer underlying the DataView. * @param byteOffset: The byte offset within the ArrayBuffer from which to start projecting the DataView. * @param result:A JSVM_Value representing a JavaScript DataView. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDataview(JSVM_Env env, @@ -801,7 +848,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDataview(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: Integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript number. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateInt32(JSVM_Env env, @@ -814,7 +862,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateInt32(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: Unsigned integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript number. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateUint32(JSVM_Env env, @@ -827,7 +876,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateUint32(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: Integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript number. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateInt64(JSVM_Env env, @@ -840,7 +890,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateInt64(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: Double-precision value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript number. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDouble(JSVM_Env env, @@ -853,7 +904,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDouble(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: Integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript BigInt. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintInt64(JSVM_Env env, @@ -866,7 +918,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintInt64(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: Unsigned integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript BigInt. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintUint64(JSVM_Env env, @@ -882,7 +935,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintUint64(JSVM_Env env, * @param wordCount: The length of the words array. * @param words: An array of uint64_t little-endian 64-bit words. * @param result: A JSVM_Value representing a JavaScript BigInt. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintWords(JSVM_Env env, @@ -899,7 +953,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintWords(JSVM_Env env, * @param str: Character buffer representing an ISO-8859-1-encoded string. * @param length: The length of the string in bytes, or JSVM_AUTO_LENGTH if it is null-terminated. * @param result: A JSVM_Value representing a JavaScript string. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringLatin1(JSVM_Env env, @@ -916,7 +971,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringLatin1(JSVM_Env env, * @param length: The length of the string in two-byte code units, or JSVM_AUTO_LENGTH * if it is null-terminated. * @param result: A JSVM_Value representing a JavaScript string. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringUtf16(JSVM_Env env, @@ -932,7 +988,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringUtf16(JSVM_Env env, * @param str: Character buffer representing a UTF8-encoded string. * @param length: The length of the string in bytes, or JSVM_AUTO_LENGTH if it is null-terminated. * @param result: A JSVM_Value representing a JavaScript string. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringUtf8(JSVM_Env env, @@ -946,7 +1003,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringUtf8(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: JSVM_Value representing the JavaScript Array whose length is being queried. * @param result: uint32 representing length of the array. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetArrayLength(JSVM_Env env, @@ -961,7 +1019,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetArrayLength(JSVM_Env env, * @param data: The underlying data buffer of the ArrayBuffer. If byte_length is 0, this may be NULL * or any other pointer value. * @param byteLength: Length in bytes of the underlying data buffer. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetArraybufferInfo(JSVM_Env env, @@ -976,7 +1035,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetArraybufferInfo(JSVM_Env env, * @param object: JSVM_Value representing JavaScript Object whose prototype to return. This returns * the equivalent of Object.getPrototypeOf (which is not the same as the function's prototype property). * @param result: JSVM_Value representing prototype of the given object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetPrototype(JSVM_Env env, @@ -997,7 +1057,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetPrototype(JSVM_Env env, * @param byteOffset: The byte offset within the underlying native array at which the first element of * the arrays is located. The value for the data parameter has already been adjusted so that data points * to the first element in the array. Therefore, the first byte of the native array would be at data - byte_offset. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetTypedarrayInfo(JSVM_Env env, @@ -1019,7 +1080,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetTypedarrayInfo(JSVM_Env env, * If byte_length is 0, this may be NULL or any other pointer value. * @param arraybuffer: ArrayBuffer underlying the DataView. * @param byteOffset: The byte offset within the data buffer from which to start projecting the DataView. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetDataviewInfo(JSVM_Env env, @@ -1038,7 +1100,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetDataviewInfo(JSVM_Env env, * @param value: JSVM_Value representing a JavaScript Date. * @param result: Time value as a double represented as milliseconds * since midnight at the beginning of 01 January, 1970 UTC. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_DATE_EXPECTED } If a non-date JSVM_Value is passed in it.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetDateValue(JSVM_Env env, @@ -1051,8 +1115,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetDateValue(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: JSVM_Value representing JavaScript Boolean. * @param result: C boolean primitive equivalent of the given JavaScript Boolean. - * @return Returns JSVM_OK if the API succeeded. - * If a non-boolean JSVM_Value is passed in it returns JSVM_BOOLEAN_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_BOOLEAN_EXPECTED }If a non-boolean JSVM_Value is passed in it.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBool(JSVM_Env env, @@ -1065,8 +1130,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBool(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: JSVM_Value representing JavaScript number. * @param result: C double primitive equivalent of the given JavaScript number. - * @return Returns JSVM_OK if the API succeeded. - * If a non-number JSVM_Value is passed in it returns JSVM_NUMBER_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueDouble(JSVM_Env env, @@ -1081,7 +1147,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueDouble(JSVM_Env env, * @param value: JSVM_Value representing JavaScript BigInt. * @param result: C int64_t primitive equivalent of the given JavaScript BigInt. * @param lossless: Indicates whether the BigInt value was converted losslessly. - * @return Returns JSVM_OK if the API succeeded. If a non-BigInt is passed in it returns JSVM_BIGINT_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_BIGINT_EXPECTED } If a non-BigInt is passed in it.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintInt64(JSVM_Env env, @@ -1097,7 +1165,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintInt64(JSVM_Env env, * @param value: JSVM_Value representing JavaScript BigInt. * @param result: C uint64_t primitive equivalent of the given JavaScript BigInt. * @param lossless: Indicates whether the BigInt value was converted losslessly. - * @return Returns JSVM_OK if the API succeeded. If a non-BigInt is passed in it returns JSVM_BIGINT_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_BIGINT_EXPECTED } If a non-BigInt is passed in it.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintUint64(JSVM_Env env, @@ -1115,7 +1185,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintUint64(JSVM_Env env, * @param wordCount: Must be initialized to the length of the words array. Upon return, it will be set to * the actual number of words that would be needed to store this BigInt. * @param words: Pointer to a pre-allocated 64-bit word array. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintWords(JSVM_Env env, @@ -1130,7 +1201,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintWords(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: JSVM_Value representing JavaScript external value. * @param result: Pointer to the data wrapped by the JavaScript external value. - * @return Returns JSVM_OK if the API succeeded. If a non-external JSVM_Value is passed in it returns JSVM_INVALID_ARG. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_INVALID_ARG } If a non-external JSVM_Value is passed in it.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueExternal(JSVM_Env env, @@ -1143,7 +1216,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueExternal(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: JSVM_Value representing JavaScript number. * @param result: C int32 primitive equivalent of the given JavaScript number. - * @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBER_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueInt32(JSVM_Env env, @@ -1156,7 +1231,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueInt32(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: JSVM_Value representing JavaScript number. * @param result: C int64 primitive equivalent of the given JavaScript number. - * @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBER_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueInt64(JSVM_Env env, @@ -1173,7 +1250,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueInt64(JSVM_Env env, * @param bufsize: Size of the destination buffer. When this value is insufficient, the returned string * is truncated and null-terminated. * @param result: Number of bytes copied into the buffer, excluding the null terminator. - * @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBER_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueStringLatin1(JSVM_Env env, @@ -1192,7 +1271,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueStringLatin1(JSVM_Env env, * @param bufsize: Size of the destination buffer. When this value is insufficient, the returned * string is truncated and null-terminated. * @param result: Number of bytes copied into the buffer, excluding the null terminator. - * @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBER_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueStringUtf8(JSVM_Env env, @@ -1211,7 +1292,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueStringUtf8(JSVM_Env env, * @param bufsize: Size of the destination buffer. When this value is insufficient, * the returned string is truncated and null-terminated. * @param result: Number of 2-byte code units copied into the buffer, excluding the null terminator. - * @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBER_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueStringUtf16(JSVM_Env env, @@ -1226,8 +1309,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueStringUtf16(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: JSVM_Value representing JavaScript number. * @param result: C primitive equivalent of the given JSVM_Value as a uint32_t. - * @return Returns JSVM_OK if the API succeeded. - * If a non-number JSVM_Value is passed in it returns JSVM_NUMBER_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in it.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueUint32(JSVM_Env env, @@ -1240,7 +1324,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueUint32(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The value of the boolean to retrieve. * @param result: JSVM_Value representing JavaScript Boolean singleton to retrieve. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetBoolean(JSVM_Env env, @@ -1252,7 +1337,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetBoolean(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param result: JSVM_Value representing JavaScript global object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetGlobal(JSVM_Env env, @@ -1263,7 +1349,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetGlobal(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param result: JSVM_Value representing JavaScript null object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetNull(JSVM_Env env, @@ -1274,7 +1361,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetNull(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param result: JSVM_Value representing JavaScript Undefined value. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetUndefined(JSVM_Env env, @@ -1286,7 +1374,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetUndefined(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value to coerce. * @param result: JSVM_Value representing the coerced JavaScript Boolean. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToBool(JSVM_Env env, @@ -1300,7 +1389,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToBool(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value to coerce. * @param result: JSVM_Value representing the coerced JavaScript number. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToNumber(JSVM_Env env, @@ -1313,7 +1403,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToNumber(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value to coerce. * @param result: JSVM_Value representing the coerced JavaScript Object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToObject(JSVM_Env env, @@ -1327,7 +1418,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToObject(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value to coerce. * @param result: JSVM_Value representing the coerced JavaScript string. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToString(JSVM_Env env, @@ -1344,7 +1436,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToString(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value whose type to query. * @param result: The type of the JavaScript value. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Typeof(JSVM_Env env, @@ -1359,7 +1452,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Typeof(JSVM_Env env, * @param constructor: The JavaScript function object of the constructor function * to check against. * @param result: Boolean that is set to true if object instanceof constructor is true. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Instanceof(JSVM_Env env, @@ -1373,7 +1467,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Instanceof(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value to check. * @param result: Whether the given object is an array. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsArray(JSVM_Env env, @@ -1386,7 +1481,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsArray(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value to check. * @param result: Whether the given object is an ArrayBuffer. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsArraybuffer(JSVM_Env env, @@ -1399,7 +1495,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsArraybuffer(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value to check. * @param result: Whether the given JSVM_Value represents a JavaScript Date object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsDate(JSVM_Env env, @@ -1412,7 +1509,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsDate(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value to check. * @param result: Whether the given JSVM_Value represents a TypedArray. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsTypedarray(JSVM_Env env, @@ -1425,7 +1523,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsTypedarray(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript value to check. * @param result: Whether the given JSVM_Value represents a DataView. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsDataview(JSVM_Env env, @@ -1439,7 +1538,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsDataview(JSVM_Env env, * @param lhs: The JavaScript value to check. * @param rhs: The JavaScript value to check against. * @param result: Whether the two JSVM_Value objects are equal. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_StrictEquals(JSVM_Env env, @@ -1455,7 +1555,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_StrictEquals(JSVM_Env env, * @param lhs: The JavaScript value to check. * @param rhs: The JavaScript value to check against. * @param result: Whether the two JSVM_Value objects are relaxed equal. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_Equals(JSVM_Env env, @@ -1468,8 +1569,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Equals(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param arraybuffer: The JavaScript ArrayBuffer to be detached. - * @return Returns JSVM_OK if the API succeeded.If a non-detachable ArrayBuffer - * is passed in it returns JSVM_DETACHABLE_ARRAYBUFFER_EXPECTED. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_DETACHABLE_ARRAYBUFFER_EXPECTED } If a non-detachable ArrayBuffer is passed in it.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DetachArraybuffer(JSVM_Env env, @@ -1481,7 +1583,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DetachArraybuffer(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript ArrayBuffer to be checked. * @param result: Whether the arraybuffer is detached. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsDetachedArraybuffer(JSVM_Env env, @@ -1497,7 +1600,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsDetachedArraybuffer(JSVM_Env env, * @param result: A JSVM_Value representing an array of JavaScript values that represent * the property names of the object. The API can be used to iterate over result using * OH_JSVM_GetArrayLength and OH_JSVM_GetElement. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetPropertyNames(JSVM_Env env, @@ -1516,7 +1620,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetPropertyNames(JSVM_Env env, * @param result: result: A JSVM_Value representing an array of JavaScript values * that represent the property names of the object. OH_JSVM_GetArrayLength and * OH_JSVM_GetElement can be used to iterate over result. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetAllPropertyNames(JSVM_Env env, @@ -1533,7 +1638,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetAllPropertyNames(JSVM_Env env, * @param object: The object on which to set the property. * @param key: The name of the property to set. * @param value: The property value. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SetProperty(JSVM_Env env, @@ -1548,7 +1654,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SetProperty(JSVM_Env env, * @param object: The object from which to retrieve the property. * @param key: The name of the property to retrieve. * @param result: The value of the property. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetProperty(JSVM_Env env, @@ -1563,7 +1670,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetProperty(JSVM_Env env, * @param object: The object to query. * @param key: The name of the property whose existence to check. * @param result: Whether the property exists on the object or not. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_HasProperty(JSVM_Env env, @@ -1579,7 +1687,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_HasProperty(JSVM_Env env, * @param key: The name of the property to delete. * @param result: Whether the property deletion succeeded or not. result * can optionally be ignored by passing NULL. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteProperty(JSVM_Env env, @@ -1596,7 +1705,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteProperty(JSVM_Env env, * @param object: The object to query. * @param key: The name of the own property whose existence to check. * @param result: Whether the own property exists on the object or not. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_HasOwnProperty(JSVM_Env env, @@ -1612,7 +1722,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_HasOwnProperty(JSVM_Env env, * @param object: The object on which to set the property. * @param utf8Name: The name of the property to set. * @param value: The property value. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SetNamedProperty(JSVM_Env env, @@ -1628,7 +1739,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SetNamedProperty(JSVM_Env env, * @param object: The object from which to retrieve the property. * @param utf8Name: The name of the property to get. * @param result: The value of the property. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetNamedProperty(JSVM_Env env, @@ -1644,7 +1756,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetNamedProperty(JSVM_Env env, * @param object: The object to query. * @param utf8Name: The name of the property whose existence to check. * @param result: Whether the property exists on the object or not. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_HasNamedProperty(JSVM_Env env, @@ -1659,7 +1772,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_HasNamedProperty(JSVM_Env env, * @param object: The object from which to set the properties. * @param index: The index of the property to set. * @param value: The property value. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SetElement(JSVM_Env env, @@ -1674,7 +1788,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SetElement(JSVM_Env env, * @param object: The object from which to retrieve the property. * @param index: The index of the property to get. * @param result: The value of the property. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetElement(JSVM_Env env, @@ -1690,7 +1805,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetElement(JSVM_Env env, * @param object: The object to query. * @param index: The index of the property whose existence to check. * @param result: Whether the property exists on the object or not. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_HasElement(JSVM_Env env, @@ -1706,7 +1822,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_HasElement(JSVM_Env env, * @param index: The index of the property to delete. * @param result: Whether the element deletion succeeded or not. result * can optionally be ignored by passing NULL. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteElement(JSVM_Env env, @@ -1724,7 +1841,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteElement(JSVM_Env env, * @param object: The object from which to retrieve the properties. * @param propertyCount: The number of elements in the properties array. * @param properties: The array of property descriptors. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DefineProperties(JSVM_Env env, @@ -1741,7 +1859,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DefineProperties(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param object: The object to freeze. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ObjectFreeze(JSVM_Env env, @@ -1753,7 +1872,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ObjectFreeze(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param object: The object to seal. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ObjectSeal(JSVM_Env env, @@ -1770,7 +1890,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ObjectSeal(JSVM_Env env, * @param argc: The count of elements in the argv array. * @param argv: Array of JSVM_values representing JavaScript values passed in as arguments to the function. * @param result: JSVM_Value representing the JavaScript object returned. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CallFunction(JSVM_Env env, @@ -1797,7 +1918,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CallFunction(JSVM_Env env, * object is invoked and data. JSVM_Callback provides more details. * @param result: JSVM_Value representing the JavaScript function object for the newly * created function. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateFunction(JSVM_Env env, @@ -1823,7 +1945,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateFunction(JSVM_Env env, * can optionally be ignored by passing NULL. * @param data: Receives the data pointer for the callback. data can optionally * be ignored by passing NULL. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetCbInfo(JSVM_Env env, @@ -1840,7 +1963,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetCbInfo(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param cbinfo: The callback info passed into the callback function. * @param result: The new.target of the constructor call. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetNewTarget(JSVM_Env env, @@ -1858,7 +1982,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetNewTarget(JSVM_Env env, * the constructor. If argc is zero this parameter may be omitted by passing in NULL. * @param result: JSVM_Value representing the JavaScript object returned, which * in this case is the constructed object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_NewInstance(JSVM_Env env, @@ -1886,7 +2011,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_NewInstance(JSVM_Env env, * @param properties: Array of property descriptors describing static and instance data * properties, accessors, and methods on the class See JSVM_PropertyDescriptor. * @param result: A JSVM_Value representing the constructor function for the class. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DefineClass(JSVM_Env env, @@ -1909,7 +2035,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DefineClass(JSVM_Env env, * @param finalizeHint: Optional contextual hint that is passed to the finalize callback. * properties, accessors, and methods on the class See JSVM_PropertyDescriptor. * @param result: Optional reference to the wrapped object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Wrap(JSVM_Env env, @@ -1928,7 +2055,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Wrap(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param jsObject: The object associated with the native instance. * @param result: Pointer to the wrapped native instance. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Unwrap(JSVM_Env env, @@ -1943,7 +2071,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Unwrap(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param jsObject: The object associated with the native instance. * @param result: Pointer to the wrapped native instance. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_RemoveWrap(JSVM_Env env, @@ -1959,7 +2088,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_RemoveWrap(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The JavaScript object or external to be marked. * @param typeTag: The tag with which the object is to be marked. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_INVALID_ARG } If the object already has an associated type tag.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_TypeTagObject(JSVM_Env env, @@ -1976,7 +2107,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_TypeTagObject(JSVM_Env env, * @param typeTag: The tag with which to compare any tag found on the object. * @param result: Whether the type tag given matched the type tag on the object. false is also returned * if no type tag was found on the object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CheckObjectTypeTag(JSVM_Env env, @@ -1994,7 +2126,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CheckObjectTypeTag(JSVM_Env env, * JavaScript object has been garbage-collected. JSVM_Finalize provides more details. * @param finalizeHint: Optional contextual hint that is passed to the finalize callback. * @param result: Optional reference to the JavaScript object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_AddFinalizer(JSVM_Env env, @@ -2013,7 +2146,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_AddFinalizer(JSVM_Env env, * versions that don't support it. * @param env: The environment that the API is invoked under. * @param result: The highest version of JSVM-API supported. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetVersion(JSVM_Env env, @@ -2023,7 +2157,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetVersion(JSVM_Env env, * @brief Return information of the VM. * * @param result: The information of the VM. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetVMInfo(JSVM_VMInfo* result); @@ -2039,7 +2174,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetVMInfo(JSVM_VMInfo* result); * @param changeInBytes: The change in externally allocated memory that is kept * alive by JavaScript objects. * @param result: The adjusted value - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_AdjustExternalMemory(JSVM_Env env, @@ -2052,7 +2188,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_AdjustExternalMemory(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param level: The memory pressure level set to the current VM. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_MemoryPressureNotification(JSVM_Env env, @@ -2066,7 +2203,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_MemoryPressureNotification(JSVM_Env env, * passed to OH_JSVM_ResolveDeferred() or OH_JSVM_RejectDeferred() to resolve * resp. reject the associated promise. * @param promise: The JavaScript promise associated with the deferred object. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreatePromise(JSVM_Env env, @@ -2083,7 +2221,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreatePromise(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param deferred: The deferred object whose associated promise to resolve. * @param resolution: The value with which to resolve the promise. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ResolveDeferred(JSVM_Env env, @@ -2100,7 +2239,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ResolveDeferred(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param deferred: The deferred object whose associated promise to resolve. * @param rejection: The value with which to reject the promise. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_RejectDeferred(JSVM_Env env, @@ -2112,7 +2252,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_RejectDeferred(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param value: The value to examine * @param isPromise: Flag indicating whether promise is a native promise object - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsPromise(JSVM_Env env, @@ -2124,7 +2265,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsPromise(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param jsonString: The string to parse. * @param result: The parse value if successful. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_JsonParse(JSVM_Env env, @@ -2136,7 +2278,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_JsonParse(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param jsonObject: The object to stringify. * @param result: The string if successfully stringified. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_JsonStringify(JSVM_Env env, @@ -2150,7 +2293,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_JsonStringify(JSVM_Env env, * @param contexts: The array of contexts to add to the snapshot. * @param blobData: The snapshot data. * @param blobSize: The size of snapshot data. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSnapshot(JSVM_VM vm, @@ -2263,7 +2407,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_WaitForDebugger(JSVM_Env env, * @param propertyHandlerCfg: The instance object triggers the corresponding callback function. * @param callAsFunctionCallback: Calling an instance object as a function will trigger this callback. * @param result: A JSVM_Value representing the constructor function for the class. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_DefineClassWithPropertyHandler(JSVM_Env env, @@ -2282,7 +2427,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DefineClassWithPropertyHandler(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @param isLocked: Flag indicating whether the current thread holds the lock for the specified environment. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsLocked(JSVM_Env env, @@ -2292,7 +2438,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsLocked(JSVM_Env env, * @brief Acquire the lock for the specified environment. Only threads that hold locks can use the environment. * * @param env: The environment that the API is invoked under. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_AcquireLock(JSVM_Env env); @@ -2301,7 +2448,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_AcquireLock(JSVM_Env env); * @brief Release the lock for the specified environment. Only threads that hold locks can use the environment. * * @param env: The environment that the API is invoked under. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_ReleaseLock(JSVM_Env env); @@ -2312,7 +2460,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ReleaseLock(JSVM_Env env); * * @param env: The VM instance on which to start the task queue. * @param result: Whether the task queue was successfully started. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_PumpMessageLoop(JSVM_VM vm, @@ -2322,7 +2471,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_PumpMessageLoop(JSVM_VM vm, * @brief Check to see if there are any microtasks waiting in the queue, and if there are, execute them. * * @param env: The VM instance on which to check microtasks. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_PerformMicrotaskCheckpoint(JSVM_VM vm); @@ -2333,7 +2483,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_PerformMicrotaskCheckpoint(JSVM_VM vm); * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isCallable: Whether the given value is callable. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } If the API succeeded.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsCallable(JSVM_Env env, @@ -2347,7 +2498,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsCallable(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isUndefined: Whether the given value is Undefined. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsUndefined(JSVM_Env env, @@ -2361,7 +2513,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsUndefined(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isNull: Whether the given value is Null. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Only returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsNull(JSVM_Env env, @@ -2375,7 +2528,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsNull(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isNullOrUndefined: Whether the given value is Null or Undefined. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Only returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsNullOrUndefined(JSVM_Env env, @@ -2389,7 +2543,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsNullOrUndefined(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isBoolean: Whether the given value is Boolean. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Only returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsBoolean(JSVM_Env env, @@ -2403,7 +2558,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsBoolean(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isNumber: Whether the given value is Number. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Only returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsNumber(JSVM_Env env, @@ -2417,7 +2573,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsNumber(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isString: Whether the given value is String. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Only returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsString(JSVM_Env env, @@ -2431,7 +2588,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsString(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isSymbol: Whether the given value is Symbol. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Only returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsSymbol(JSVM_Env env, @@ -2445,7 +2603,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsSymbol(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isFunction: Whether the given value is Function. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Only returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsFunction(JSVM_Env env, @@ -2458,7 +2617,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsFunction(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isObject: Whether the given value is Object. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Only returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsObject(JSVM_Env env, @@ -2472,7 +2632,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsObject(JSVM_Env env, * @param env: The VM instance on which to check microtasks. * @param value: The JavaScript value to check. * @param isBigInt: Whether the given value is BigInt. - * @return Only returns JSVM_OK, because this API will not trigger any exception. + * @return Only returns JSVM funtions result code. + * {@link JSVM_OK } This API will not trigger any exception.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsBigInt(JSVM_Env env,