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

Function Freeze

test/object/object_freeze_seal.cc:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace Napi;
7
8Value Freeze(const CallbackInfo& info) {
9 Object obj = info[0].As<Object>();
10 return Boolean::New(info.Env(), MaybeUnwrapOr(obj.Freeze(), false));
11}
12
13Value Seal(const CallbackInfo& info) {
14 Object obj = info[0].As<Object>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
EnvMethod · 0.80
FreezeMethod · 0.80

Tested by

no test coverage detected