diff --git a/ark_runtime/jsvm/jsvm.h b/ark_runtime/jsvm/jsvm.h index 462e0203d..2f38b4ac9 100644 --- a/ark_runtime/jsvm/jsvm.h +++ b/ark_runtime/jsvm/jsvm.h @@ -102,7 +102,8 @@ EXTERN_C_START * @brief Init a JavaScript vm. * * @param options: The options for initialize the JavaScript VM. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * Returns {@link JSVM_OK } in all cases.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Init(const JSVM_InitOptions* options); @@ -113,7 +114,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateVM(const JSVM_CreateVMOptions* options, @@ -124,7 +125,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateVM(const JSVM_CreateVMOptions* options, * * @param vm: The VM instance to be Destroyed. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DestroyVM(JSVM_VM vm); @@ -135,7 +136,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_OpenVMScope(JSVM_VM vm, @@ -147,7 +148,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CloseVMScope(JSVM_VM vm, @@ -161,7 +162,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CloseVMScope(JSVM_VM vm, * @param properties: The array of property descriptor. * @param result: The new environment created. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateEnv(JSVM_VM vm, @@ -176,7 +177,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateEnv(JSVM_VM vm, * @param index: The index of the environment in the snapshot. * @param result: The new environment created. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateEnvFromSnapshot(JSVM_VM vm, @@ -188,7 +189,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateEnvFromSnapshot(JSVM_VM vm, * * @param env: The environment to be destroyed. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DestroyEnv(JSVM_Env env); @@ -199,7 +200,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_OpenEnvScope(JSVM_Env env, @@ -211,7 +212,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CloseEnvScope(JSVM_Env env, @@ -222,7 +223,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CloseEnvScope(JSVM_Env env, * * @param env: The environment that the JSVM-API call is invoked under. * @param result: The VM instance of the environment. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * Returns {@link JSVM_OK } in all cases.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetVM(JSVM_Env env, @@ -239,7 +241,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetVM(JSVM_Env env, * @param cacheRejected: Whether the code cache rejected by compilation. * @param result: The compiled script. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CompileScript(JSVM_Env env, @@ -263,7 +265,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CompileScript(JSVM_Env env, * @param origin: The information of source code. * @param result: The compiled script. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_CompileScriptWithOrigin(JSVM_Env env, @@ -283,7 +285,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CompileScriptWithOrigin(JSVM_Env env, * @param data: The data of the code cache. * @param length: The length of the code cache data. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateCodeCache(JSVM_Env env, @@ -318,7 +320,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_RunScript(JSVM_Env env, * 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SetInstanceData(JSVM_Env env, @@ -334,7 +336,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SetInstanceData(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetInstanceData(JSVM_Env env, @@ -347,7 +349,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetLastErrorInfo(JSVM_Env env, @@ -359,7 +361,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Throw(JSVM_Env env, @@ -372,7 +374,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Throw(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowError(JSVM_Env env, @@ -386,7 +388,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowError(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowTypeError(JSVM_Env env, @@ -400,7 +402,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowTypeError(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowRangeError(JSVM_Env env, @@ -414,7 +416,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowRangeError(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowSyntaxError(JSVM_Env env, @@ -429,7 +431,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ThrowSyntaxError(JSVM_Env env, * @param result: Boolean value that is set to true if JSVM_Value represents an error, * false otherwise. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsError(JSVM_Env env, @@ -444,7 +446,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsError(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateError(JSVM_Env env, @@ -460,7 +462,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateError(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateTypeError(JSVM_Env env, @@ -476,7 +478,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateTypeError(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateRangeError(JSVM_Env env, @@ -492,7 +494,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateRangeError(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSyntaxError(JSVM_Env env, @@ -506,7 +508,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetAndClearLastException(JSVM_Env env, @@ -518,7 +520,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsExceptionPending(JSVM_Env env, @@ -530,7 +532,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_OpenHandleScope(JSVM_Env env, @@ -543,7 +545,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CloseHandleScope(JSVM_Env env, @@ -555,7 +557,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_OpenEscapableHandleScope(JSVM_Env env, @@ -568,7 +570,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CloseEscapableHandleScope(JSVM_Env env, @@ -584,7 +586,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CloseEscapableHandleScope(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_EscapeHandle(JSVM_Env env, @@ -600,7 +602,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_EscapeHandle(JSVM_Env env, * @param initialRefcount: Initial reference count for the new reference. * @param result: JSVM_Ref pointing to the new reference. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateReference(JSVM_Env env, @@ -614,7 +616,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteReference(JSVM_Env env, @@ -628,7 +630,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteReference(JSVM_Env env, * @param ref: JSVM_Ref for which the reference count will be incremented. * @param result: The new reference count. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ReferenceRef(JSVM_Env env, @@ -643,7 +645,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ReferenceRef(JSVM_Env env, * @param ref: JSVM_Ref for which the reference count will be decremented. * @param result: The new reference count. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ReferenceUnref(JSVM_Env env, @@ -658,7 +660,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ReferenceUnref(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetReferenceValue(JSVM_Env env, @@ -671,7 +673,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArray(JSVM_Env env, @@ -687,7 +689,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArray(JSVM_Env env, * @param length: The initial length of the Array. * @param result: A JSVM_Value representing a JavaScript Array. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArrayWithLength(JSVM_Env env, @@ -707,7 +709,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArrayWithLength(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArraybuffer(JSVM_Env env, @@ -723,7 +725,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateArraybuffer(JSVM_Env env, * @param time: ECMAScript time value in milliseconds since 01 January, 1970 UTC. * @param result: A JSVM_Value representing a JavaScript Date. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDate(JSVM_Env env, @@ -744,7 +746,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDate(JSVM_Env env, * @param finalizeHint: Optional hint to pass to the finalize callback during collection. * @param result: A JSVM_Value representing an external value. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateExternal(JSVM_Env env, @@ -759,7 +761,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateObject(JSVM_Env env, @@ -773,7 +775,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateObject(JSVM_Env env, * for the symbol. * @param result: A JSVM_Value representing a JavaScript symbol. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSymbol(JSVM_Env env, @@ -789,7 +791,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSymbol(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SymbolFor(JSVM_Env env, @@ -810,7 +812,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SymbolFor(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateTypedarray(JSVM_Env env, @@ -833,7 +835,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateTypedarray(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDataview(JSVM_Env env, @@ -849,7 +851,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDataview(JSVM_Env env, * @param value: Integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript number. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateInt32(JSVM_Env env, @@ -863,7 +865,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateInt32(JSVM_Env env, * @param value: Unsigned integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript number. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateUint32(JSVM_Env env, @@ -877,7 +879,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateUint32(JSVM_Env env, * @param value: Integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript number. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateInt64(JSVM_Env env, @@ -891,7 +893,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateInt64(JSVM_Env env, * @param value: Double-precision value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript number. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDouble(JSVM_Env env, @@ -905,7 +907,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateDouble(JSVM_Env env, * @param value: Integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript BigInt. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintInt64(JSVM_Env env, @@ -919,7 +921,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintInt64(JSVM_Env env, * @param value: Unsigned integer value to be represented in JavaScript. * @param result: A JSVM_Value representing a JavaScript BigInt. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintUint64(JSVM_Env env, @@ -936,7 +938,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintUint64(JSVM_Env env, * @param words: An array of uint64_t little-endian 64-bit words. * @param result: A JSVM_Value representing a JavaScript BigInt. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintWords(JSVM_Env env, @@ -954,7 +956,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintWords(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringLatin1(JSVM_Env env, @@ -972,7 +974,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringLatin1(JSVM_Env env, * if it is null-terminated. * @param result: A JSVM_Value representing a JavaScript string. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringUtf16(JSVM_Env env, @@ -989,7 +991,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringUtf16(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringUtf8(JSVM_Env env, @@ -1004,7 +1006,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateStringUtf8(JSVM_Env env, * @param value: JSVM_Value representing the JavaScript Array whose length is being queried. * @param result: uint32 representing length of the array. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetArrayLength(JSVM_Env env, @@ -1020,7 +1022,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetArrayLength(JSVM_Env env, * or any other pointer value. * @param byteLength: Length in bytes of the underlying data buffer. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetArraybufferInfo(JSVM_Env env, @@ -1036,7 +1038,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetArraybufferInfo(JSVM_Env env, * 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetPrototype(JSVM_Env env, @@ -1058,7 +1060,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetPrototype(JSVM_Env env, * 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetTypedarrayInfo(JSVM_Env env, @@ -1081,7 +1083,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetTypedarrayInfo(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetDataviewInfo(JSVM_Env env, @@ -1092,7 +1094,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetDataviewInfo(JSVM_Env env, size_t* byteOffset); /** - * @brief Returns JSVM_OK if the API succeeded. If a non-date JSVM_Value is + * @brief Returns JSVM_OK if the function executed successfully. If a non-date JSVM_Value is * passed in it returns JSVM_date_expected.This API returns the C double * primitive of time value for the given JavaScript Date. * @@ -1101,7 +1103,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetDataviewInfo(JSVM_Env env, * @param result: Time value as a double represented as milliseconds * since midnight at the beginning of 01 January, 1970 UTC. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_DATE_EXPECTED } If a non-date JSVM_Value is passed in it.\n * @since 11 */ @@ -1116,7 +1118,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetDateValue(JSVM_Env env, * @param value: JSVM_Value representing JavaScript Boolean. * @param result: C boolean primitive equivalent of the given JavaScript Boolean. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_BOOLEAN_EXPECTED }If a non-boolean JSVM_Value is passed in it.\n * @since 11 */ @@ -1131,7 +1133,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBool(JSVM_Env env, * @param value: JSVM_Value representing JavaScript number. * @param result: C double primitive equivalent of the given JavaScript number. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ @@ -1148,7 +1150,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueDouble(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_BIGINT_EXPECTED } If a non-BigInt is passed in it.\n * @since 11 */ @@ -1166,7 +1168,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintInt64(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_BIGINT_EXPECTED } If a non-BigInt is passed in it.\n * @since 11 */ @@ -1186,7 +1188,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintUint64(JSVM_Env env, * 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintWords(JSVM_Env env, @@ -1202,7 +1204,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueBigintWords(JSVM_Env env, * @param value: JSVM_Value representing JavaScript external value. * @param result: Pointer to the data wrapped by the JavaScript external value. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_INVALID_ARG } If a non-external JSVM_Value is passed in it.\n * @since 11 */ @@ -1217,7 +1219,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueExternal(JSVM_Env env, * @param value: JSVM_Value representing JavaScript number. * @param result: C int32 primitive equivalent of the given JavaScript number. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ @@ -1232,7 +1234,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueInt32(JSVM_Env env, * @param value: JSVM_Value representing JavaScript number. * @param result: C int64 primitive equivalent of the given JavaScript number. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ @@ -1251,7 +1253,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueInt64(JSVM_Env env, * is truncated and null-terminated. * @param result: Number of bytes copied into the buffer, excluding the null terminator. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ @@ -1272,7 +1274,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueStringLatin1(JSVM_Env env, * string is truncated and null-terminated. * @param result: Number of bytes copied into the buffer, excluding the null terminator. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ @@ -1293,7 +1295,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueStringUtf8(JSVM_Env env, * 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in.\n * @since 11 */ @@ -1310,7 +1312,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueStringUtf16(JSVM_Env env, * @param value: JSVM_Value representing JavaScript number. * @param result: C primitive equivalent of the given JSVM_Value as a uint32_t. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_NUMBER_EXPECTED } If a non-number JSVM_Value is passed in it.\n * @since 11 */ @@ -1325,7 +1327,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetValueUint32(JSVM_Env env, * @param value: The value of the boolean to retrieve. * @param result: JSVM_Value representing JavaScript Boolean singleton to retrieve. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetBoolean(JSVM_Env env, @@ -1338,7 +1340,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetGlobal(JSVM_Env env, @@ -1350,7 +1352,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetNull(JSVM_Env env, @@ -1362,7 +1364,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetUndefined(JSVM_Env env, @@ -1375,7 +1377,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetUndefined(JSVM_Env env, * @param value: The JavaScript value to coerce. * @param result: JSVM_Value representing the coerced JavaScript Boolean. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToBool(JSVM_Env env, @@ -1390,7 +1392,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToBool(JSVM_Env env, * @param value: The JavaScript value to coerce. * @param result: JSVM_Value representing the coerced JavaScript number. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToNumber(JSVM_Env env, @@ -1404,7 +1406,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToNumber(JSVM_Env env, * @param value: The JavaScript value to coerce. * @param result: JSVM_Value representing the coerced JavaScript Object. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToObject(JSVM_Env env, @@ -1419,7 +1421,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToObject(JSVM_Env env, * @param value: The JavaScript value to coerce. * @param result: JSVM_Value representing the coerced JavaScript string. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToString(JSVM_Env env, @@ -1437,7 +1439,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CoerceToString(JSVM_Env env, * @param value: The JavaScript value whose type to query. * @param result: The type of the JavaScript value. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Typeof(JSVM_Env env, @@ -1453,7 +1455,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Typeof(JSVM_Env env, * to check against. * @param result: Boolean that is set to true if object instanceof constructor is true. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Instanceof(JSVM_Env env, @@ -1468,7 +1470,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Instanceof(JSVM_Env env, * @param value: The JavaScript value to check. * @param result: Whether the given object is an array. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsArray(JSVM_Env env, @@ -1482,7 +1484,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsArray(JSVM_Env env, * @param value: The JavaScript value to check. * @param result: Whether the given object is an ArrayBuffer. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsArraybuffer(JSVM_Env env, @@ -1496,7 +1498,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsArraybuffer(JSVM_Env env, * @param value: The JavaScript value to check. * @param result: Whether the given JSVM_Value represents a JavaScript Date object. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsDate(JSVM_Env env, @@ -1510,7 +1512,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsDate(JSVM_Env env, * @param value: The JavaScript value to check. * @param result: Whether the given JSVM_Value represents a TypedArray. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsTypedarray(JSVM_Env env, @@ -1524,7 +1526,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsTypedarray(JSVM_Env env, * @param value: The JavaScript value to check. * @param result: Whether the given JSVM_Value represents a DataView. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsDataview(JSVM_Env env, @@ -1539,7 +1541,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsDataview(JSVM_Env env, * @param rhs: The JavaScript value to check against. * @param result: Whether the two JSVM_Value objects are equal. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_StrictEquals(JSVM_Env env, @@ -1556,7 +1558,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_StrictEquals(JSVM_Env env, * @param rhs: The JavaScript value to check against. * @param result: Whether the two JSVM_Value objects are relaxed equal. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_Equals(JSVM_Env env, @@ -1570,7 +1572,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_DETACHABLE_ARRAYBUFFER_EXPECTED } If a non-detachable ArrayBuffer is passed in it.\n * @since 11 */ @@ -1584,7 +1586,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DetachArraybuffer(JSVM_Env env, * @param value: The JavaScript ArrayBuffer to be checked. * @param result: Whether the arraybuffer is detached. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsDetachedArraybuffer(JSVM_Env env, @@ -1601,7 +1603,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsDetachedArraybuffer(JSVM_Env env, * 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetPropertyNames(JSVM_Env env, @@ -1621,7 +1623,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetPropertyNames(JSVM_Env env, * 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetAllPropertyNames(JSVM_Env env, @@ -1639,7 +1641,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetAllPropertyNames(JSVM_Env env, * @param key: The name of the property to set. * @param value: The property value. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SetProperty(JSVM_Env env, @@ -1655,7 +1657,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SetProperty(JSVM_Env env, * @param key: The name of the property to retrieve. * @param result: The value of the property. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetProperty(JSVM_Env env, @@ -1671,7 +1673,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetProperty(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_HasProperty(JSVM_Env env, @@ -1688,7 +1690,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_HasProperty(JSVM_Env env, * @param result: Whether the property deletion succeeded or not. result * can optionally be ignored by passing NULL. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteProperty(JSVM_Env env, @@ -1706,7 +1708,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteProperty(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_HasOwnProperty(JSVM_Env env, @@ -1723,7 +1725,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_HasOwnProperty(JSVM_Env env, * @param utf8Name: The name of the property to set. * @param value: The property value. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SetNamedProperty(JSVM_Env env, @@ -1740,7 +1742,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SetNamedProperty(JSVM_Env env, * @param utf8Name: The name of the property to get. * @param result: The value of the property. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetNamedProperty(JSVM_Env env, @@ -1757,7 +1759,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetNamedProperty(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_HasNamedProperty(JSVM_Env env, @@ -1773,7 +1775,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_HasNamedProperty(JSVM_Env env, * @param index: The index of the property to set. * @param value: The property value. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_SetElement(JSVM_Env env, @@ -1789,7 +1791,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_SetElement(JSVM_Env env, * @param index: The index of the property to get. * @param result: The value of the property. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetElement(JSVM_Env env, @@ -1806,7 +1808,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetElement(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_HasElement(JSVM_Env env, @@ -1823,7 +1825,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_HasElement(JSVM_Env env, * @param result: Whether the element deletion succeeded or not. result * can optionally be ignored by passing NULL. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteElement(JSVM_Env env, @@ -1842,7 +1844,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DeleteElement(JSVM_Env env, * @param propertyCount: The number of elements in the properties array. * @param properties: The array of property descriptors. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DefineProperties(JSVM_Env env, @@ -1860,7 +1862,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ObjectFreeze(JSVM_Env env, @@ -1873,7 +1875,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ObjectSeal(JSVM_Env env, @@ -1891,7 +1893,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ObjectSeal(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CallFunction(JSVM_Env env, @@ -1919,7 +1921,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CallFunction(JSVM_Env env, * @param result: JSVM_Value representing the JavaScript function object for the newly * created function. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateFunction(JSVM_Env env, @@ -1946,7 +1948,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateFunction(JSVM_Env env, * @param data: Receives the data pointer for the callback. data can optionally * be ignored by passing NULL. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetCbInfo(JSVM_Env env, @@ -1964,7 +1966,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetCbInfo(JSVM_Env env, * @param cbinfo: The callback info passed into the callback function. * @param result: The new.target of the constructor call. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetNewTarget(JSVM_Env env, @@ -1983,7 +1985,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetNewTarget(JSVM_Env env, * @param result: JSVM_Value representing the JavaScript object returned, which * in this case is the constructed object. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_NewInstance(JSVM_Env env, @@ -2012,7 +2014,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_NewInstance(JSVM_Env env, * 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_DefineClass(JSVM_Env env, @@ -2036,7 +2038,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_DefineClass(JSVM_Env env, * properties, accessors, and methods on the class See JSVM_PropertyDescriptor. * @param result: Optional reference to the wrapped object. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Wrap(JSVM_Env env, @@ -2056,7 +2058,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Wrap(JSVM_Env env, * @param jsObject: The object associated with the native instance. * @param result: Pointer to the wrapped native instance. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_Unwrap(JSVM_Env env, @@ -2072,7 +2074,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_Unwrap(JSVM_Env env, * @param jsObject: The object associated with the native instance. * @param result: Pointer to the wrapped native instance. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_RemoveWrap(JSVM_Env env, @@ -2089,7 +2091,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_RemoveWrap(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * {@link JSVM_INVALID_ARG } If the object already has an associated type tag.\n * @since 11 */ @@ -2108,7 +2110,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_TypeTagObject(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CheckObjectTypeTag(JSVM_Env env, @@ -2127,7 +2129,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CheckObjectTypeTag(JSVM_Env env, * @param finalizeHint: Optional contextual hint that is passed to the finalize callback. * @param result: Optional reference to the JavaScript object. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_AddFinalizer(JSVM_Env env, @@ -2147,7 +2149,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_AddFinalizer(JSVM_Env env, * @param env: The environment that the API is invoked under. * @param result: The highest version of JSVM-API supported. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetVersion(JSVM_Env env, @@ -2158,7 +2160,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetVersion(JSVM_Env env, * * @param result: The information of the VM. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetVMInfo(JSVM_VMInfo* result); @@ -2175,7 +2177,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetVMInfo(JSVM_VMInfo* result); * alive by JavaScript objects. * @param result: The adjusted value * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_AdjustExternalMemory(JSVM_Env env, @@ -2189,7 +2191,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_MemoryPressureNotification(JSVM_Env env, @@ -2204,7 +2206,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_MemoryPressureNotification(JSVM_Env env, * resp. reject the associated promise. * @param promise: The JavaScript promise associated with the deferred object. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreatePromise(JSVM_Env env, @@ -2222,7 +2224,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreatePromise(JSVM_Env env, * @param deferred: The deferred object whose associated promise to resolve. * @param resolution: The value with which to resolve the promise. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_ResolveDeferred(JSVM_Env env, @@ -2240,7 +2242,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_ResolveDeferred(JSVM_Env env, * @param deferred: The deferred object whose associated promise to resolve. * @param rejection: The value with which to reject the promise. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_RejectDeferred(JSVM_Env env, @@ -2253,7 +2255,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_RejectDeferred(JSVM_Env env, * @param value: The value to examine * @param isPromise: Flag indicating whether promise is a native promise object * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsPromise(JSVM_Env env, @@ -2266,7 +2268,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsPromise(JSVM_Env env, * @param jsonString: The string to parse. * @param result: The parse value if successful. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_JsonParse(JSVM_Env env, @@ -2279,7 +2281,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_JsonParse(JSVM_Env env, * @param jsonObject: The object to stringify. * @param result: The string if successfully stringified. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_JsonStringify(JSVM_Env env, @@ -2294,7 +2296,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_JsonStringify(JSVM_Env env, * @param blobData: The snapshot data. * @param blobSize: The size of snapshot data. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 11 */ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSnapshot(JSVM_VM vm, @@ -2308,7 +2310,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CreateSnapshot(JSVM_VM vm, * * @param vm: The VM whose heap statistics are returned. * @param result: The heap statistics data. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * Returns {@link JSVM_OK } in all cases.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_GetHeapStatistics(JSVM_VM vm, @@ -2319,7 +2322,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_GetHeapStatistics(JSVM_VM vm, * * @param vm: The VM to start CPU profiler for. * @param result: The pointer to the CPU profiler. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * Returns {@link JSVM_OK } in all cases.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_StartCpuProfiler(JSVM_VM vm, @@ -2332,7 +2336,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_StartCpuProfiler(JSVM_VM vm, * @param profiler: The CPU profiler to stop. * @param stream: The output stream callback for receiving the data. * @param streamData: Optional data to be passed to the stream callback. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * Returns {@link JSVM_OK } in all cases.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_StopCpuProfiler(JSVM_VM vm, @@ -2346,7 +2351,8 @@ JSVM_EXTERN JSVM_Status OH_JSVM_StopCpuProfiler(JSVM_VM vm, * @param vm: The VM whose heap snapshot is taken. * @param stream: The output stream callback for receiving the data. * @param streamData: Optional data to be passed to the stream callback. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * Returns {@link JSVM_OK } in all cases.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_TakeHeapSnapshot(JSVM_VM vm, @@ -2359,7 +2365,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_TakeHeapSnapshot(JSVM_VM vm, * @param env: The environment that the API is invoked under. * @param host: The host to listen to for inspector connections. * @param port: The port to listen to for inspector connections. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * Returns {@link JSVM_OK } if the function executed successfully.\n + * Returns {@link JSVM_PENDING_EXCEPTION } if an exception occurs.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_OpenInspector(JSVM_Env env, @@ -2370,7 +2378,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_OpenInspector(JSVM_Env env, * @brief This function attempts to close all remaining inspector connections. * * @param env: The environment that the API is invoked under. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * Returns {@link JSVM_OK } if the function executed successfully.\n + * Returns {@link JSVM_PENDING_EXCEPTION } if an exception occurs.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_CloseInspector(JSVM_Env env); @@ -2381,7 +2391,9 @@ JSVM_EXTERN JSVM_Status OH_JSVM_CloseInspector(JSVM_Env env); * * @param env: The environment that the API is invoked under. * @param breakNextLine: Whether break on the next line of JavaScript code. - * @return Returns JSVM_OK if the API succeeded. + * @return Returns JSVM funtions result code. + * Returns {@link JSVM_OK } if the function executed successfully.\n + * Returns {@link JSVM_PENDING_EXCEPTION } if an exception occurs.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_WaitForDebugger(JSVM_Env env, @@ -2408,7 +2420,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_WaitForDebugger(JSVM_Env env, * @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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_DefineClassWithPropertyHandler(JSVM_Env env, @@ -2428,7 +2440,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsLocked(JSVM_Env env, @@ -2439,7 +2451,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_IsLocked(JSVM_Env env, * * @param env: The environment that the API is invoked under. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_AcquireLock(JSVM_Env env); @@ -2449,7 +2461,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_AcquireLock(JSVM_Env env); * * @param env: The environment that the API is invoked under. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_ReleaseLock(JSVM_Env env); @@ -2461,7 +2473,7 @@ 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 funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_PumpMessageLoop(JSVM_VM vm, @@ -2472,7 +2484,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_PumpMessageLoop(JSVM_VM vm, * * @param env: The VM instance on which to check microtasks. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_PerformMicrotaskCheckpoint(JSVM_VM vm); @@ -2484,7 +2496,7 @@ JSVM_EXTERN JSVM_Status OH_JSVM_PerformMicrotaskCheckpoint(JSVM_VM vm); * @param value: The JavaScript value to check. * @param isCallable: Whether the given value is callable. * @return Returns JSVM funtions result code. - * {@link JSVM_OK } If the API succeeded.\n + * {@link JSVM_OK } If the function executed successfully.\n * @since 12 */ JSVM_EXTERN JSVM_Status OH_JSVM_IsCallable(JSVM_Env env,