MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / isAnyArrayBuffer

Function isAnyArrayBuffer

src/internalBinding/utils.cc:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static bool isAnyArrayBuffer(JSContext *cx, unsigned argc, JS::Value *vp) {
39 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
40 JSObject *obj = JS::ToObject(cx, args.get(0));
41 args.rval().setBoolean(JS::IsArrayBufferObjectMaybeShared(obj)); // ArrayBuffer or SharedArrayBuffer
42 return true;
43}
44
45static bool isPromise(JSContext *cx, unsigned argc, JS::Value *vp) {
46 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);

Callers 1

formatValueFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected