Lines Matching refs:symbol

62 |FUNC|napi_create_symbol|Creates a JS symbol.|10|
181 …on, the symbol exported to OpenHarmony is referred to as "exported symbol" and the symbol in the n…
187 - If **code** is a null pointer, the native symbol returns **napi_invalid_arg**, whereas the export…
189 - The exported symbol permits a failure in setting **code**.
195 - If **code** is a null pointer, the native symbol returns **napi_invalid_arg**, whereas the export…
197 - The exported symbol permits a failure in setting **code**.
203 - If **code** is a null pointer, the native symbol returns **napi_invalid_arg**, whereas the export…
205 - The exported symbol permits a failure in setting **code**.
211 - **code**: The value type can be string or number in the exported symbol.
215 - If the code type is incorrect, the exported symbol returns **napi_invalid_arg**.
217 - The exported symbol permits a failure in setting **code**.
223 - **code**: The value type can be string or number in the exported symbol.
227 - If the code type is incorrect, the exported symbol returns **napi_invalid_arg**.
229 - The exported symbol permits a failure in setting **code**.
237 - **code**: The value type can be string or number in the exported symbol.
241 - If the code type is incorrect, the exported symbol returns **napi_invalid_arg**.
243 - The exported symbol permits a failure in setting **code**.
251 … be object, function, or symbol in the native symbol, whereas there are no restrictions on the val…
263 - The exported symbol returns **napi_invalid_arg** if **description** is not empty and is not a str…
269 - The exported symbol returns **napi_arraybuffer_expected** if **arraybuffer** is not empty and is …
275 - The exported symbol returns **napi_arraybuffer_expected** if **arraybuffer** is not empty and is …
283 …pedArray](../apis-arkts/js-apis-arkts-collections.md#collectionstypedarray) in the exported symbol.
289 - If **value** is **undefined** or null, the exported symbol returns **napi_ok** and **undefined** …
295 - If **object** is not an object, the exported symbol returns **napi_object_expected** with **resul…
297 - If **constructor** is not a function object, the exported symbol returns **napi_function_expected…
303 - **value**: The exported symbol also supports the [Sendable TypedArray](../apis-arkts/js-apis-arkt…
309 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
315 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
321 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
327 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
333 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
339 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
345 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
351 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
357 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
363 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
365 - If the **index** value is too large, the native symbol throws an exception and interrupts the pro…
371 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
377 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
383 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
389 - If **object** is not an object or a function, the exported symbol returns **napi_object_expected*…
391 …triggered during property traversal, the native symbol throws the exception, whereas the exported
397 - If **js_object** is not an object or a function, the exported symbol returns **napi_object_expect…
403 - If **js_object** is not an object or a function, the exported symbol returns **napi_object_expect…
409 - The export symbol does not check whether the **recv** parameter is **nullptr**.
411 - If **func** is not a function, the export symbol returns **napi_function_expected**.
417 - If **constructor** is not a function, the export symbol returns **napi_function_expected**.
423 - If **length** is not **NAPI_AUTO_LENGTH** and is greater than **INT_MAX**, the exported symbol re…
429 - **finalize_cb**: It can be empty in the native symbol. If this parameter is empty, the exported s…
430 - **result**: The native symbol returns a weak reference, whereas the exported symbol returns a str…
434 - If **js_object** is not an object or a function, the exported symbol returns **napi_object_expect…
440 - If **js_object** is not an object or a function, the exported symbol returns **napi_object_expect…
446 - If **js_object** is not an object or a function, the exported symbol returns **napi_object_expect…
450 - If the wrap is associated with the **finalize** callback, the export symbol will call **finalize(…
456 - The exported symbol does not support **async_hooks**.
458 - The exported symbol does not check whether the input parameter **async_resource_name** is a strin…
460 - The exported symbol does not process the input parameter **async_resource** because it does not s…
466 - The exported symbol does not support **async_hooks**.
472 - The exported symbol does not support **async_hooks**.
478 …he native symbol returns **napi_generic_failure**, **napi_invalid_arg**, or **napi_cancelled** bas…
484 - Currently, OpenHarmony does not support **async_hooks**. After the exported symbol is called, ope…
490 - Currently, OpenHarmony does not support **async_hooks**. After the exported symbol is called, ope…
496 - Currently, OpenHarmony does not support **async_hooks**. After the exported symbol is called, ope…
502 - OpenHarmony does not need to obtain the node version. Therefore, the export symbol is an empty im…
520 - **initial_thread_count**: The maximum value is **128** in the exported symbol.
522 - **async_resource**: There is no type restriction for this parameter in the exported symbol.
524 - **async_resource_name**: There is no type restriction for this parameter in the exported symbol.
526 - **func**: There is no type restriction for this parameter in the exported symbol.
538 - If **uv_async_send** fails to be called, the exported symbol returns **napi_generic_failure**.
546 - If **ThreadCount** is **0**, the exported symbol returns **napi_generic_failure**.
552 - The exported symbol checks whether **func** and **env** belong to the same ArkTS thread. If not, …
558 - The exported symbol checks whether **func** and **env** belong to the same ArkTS thread. If not, …
564 … be created, the native symbol returns **napi_generic_failure**. In OpenHarmony, an exception is t…
570 … be created, the native symbol returns **napi_generic_failure**. In OpenHarmony, an exception is t…
576 - If **value** is not a BigInt object, the exported symbol returns **napi_object_expected**.
584 - If **size** is **0**, the exported symbol returns **napi_invalid_arg**.
586 - If **size** is greater than **2097152**, the exported symbol returns **napi_invalid_arg** and log…
588 - If **data** is **nullptr**, the exported symbol returns **napi_invalid_arg**.
590 - If an exception occurs before the native symbol is called or exited, **napi_pending_exception** i…
598 - If **size** is **0**, the exported symbol returns **napi_invalid_arg**.
600 - If **size** is greater than **2097152**, the exported symbol returns **napi_invalid_arg** and log…
602 - If **data** is **nullptr**, the exported symbol returns **napi_invalid_arg**.
604 - If an exception occurs before the native symbol is called or exited, **napi_pending_exception** i…
612 - If **size** is **0**, the exported symbol returns **napi_invalid_arg**.
614 - If **size** is greater than **2097152**, the exported symbol returns **napi_invalid_arg** and log…
616 …ed due to an identified cause, the native symbol returns **napi_generic_failure**, whereas the exp…
628 - If **arraybuffer** is not an object, the exported symbol returns **napi_object_expected**. If **a…
640 - If **js_object** is not an object, the exported symbol returns **napi_object_expected**.
650 - The native symbol returns a weak reference, whereas the exported symbol returns a strong referenc…
656 - **err**: The exported symbol supports only the **Error** type. If the type does not match, **napi…
662 …valid **napi_env** (for example, it is a released **env**), the exported symbol returns **napi_gen…
668 - If **length** is too large, the native symbol throws an exception and interrupts the process. Ope…
674 - If **length** is too large, the native symbol throws an exception and interrupts the process. Ope…