pub unsafe extern "C" fn napi_object_seal(
env: napi_env,
object: napi_value,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Seals an ArkTS object. Once an object is sealed, its properties cannot be added or deleted, but property values can be modified.
§Arguments
-
env- Current running virtual machine context. -
object- The given ArkTS object.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If env or object is nullptr.
[napi_pending_exception] If an ArkTS exception existed when the function was called.
Available since API-level: 10