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

Function TestIsSharedArrayBuffer

test/shared_array_buffer.cc:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7#ifdef NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER
8Value TestIsSharedArrayBuffer(const CallbackInfo& info) {
9 if (info.Length() < 1) {
10 Error::New(info.Env(), "Wrong number of arguments")
11 .ThrowAsJavaScriptException();
12 return Value();
13 }
14
15 return Boolean::New(info.Env(), info[0].IsSharedArrayBuffer());
16}
17
18Value TestCreateSharedArrayBuffer(const CallbackInfo& info) {
19 if (info.Length() < 1) {

Callers

nothing calls this directly

Calls 4

LengthMethod · 0.80
EnvMethod · 0.80
ValueClass · 0.50

Tested by

no test coverage detected