MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / Freeze

Method Freeze

napi-inl.h:1981–1984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1979
1980#if NAPI_VERSION >= 8
1981inline MaybeOrValue<bool> Object::Freeze() const {
1982 napi_status status = napi_object_freeze(_env, _value);
1983 NAPI_RETURN_OR_THROW_IF_FAILED(_env, status, status == napi_ok, bool);
1984}
1985
1986inline MaybeOrValue<bool> Object::Seal() const {
1987 napi_status status = napi_object_seal(_env, _value);

Callers 1

FreezeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected