MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / CreateWeakArray

Function CreateWeakArray

test/reference.cc:58–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void CreateWeakArray(const CallbackInfo& info) {
59 weak = Weak(Buffer<uint8_t>::New(info.Env(), 1));
60 weak.SuppressDestruct();
61}
62
63napi_value AccessWeakArrayEmpty(const CallbackInfo& info) {
64 Buffer<uint8_t> value = weak.Value();

Callers

nothing calls this directly

Calls 3

WeakFunction · 0.85
EnvMethod · 0.80
SuppressDestructMethod · 0.80

Tested by

no test coverage detected