MCPcopy Create free account
hub / github.com/GoogleChrome/samples / checkPtr

Function checkPtr

sqlite-wasm-cos/sqlite3-node.mjs:9975–9978  ·  view source on GitHub ↗
(ptr)

Source from the content-addressed store, hash-verified

9973 const __allocStruct = function f(ctor, obj, xm){
9974 let opt;
9975 const checkPtr = (ptr)=>{
9976 __isNonNullPtr(ptr) ||
9977 toss("Invalid pointer value",arguments[0],"for",ctor.structName,"constructor.");
9978 };
9979 if( arguments.length>=3 ){
9980 if( xm && ('object'===typeof xm) ){
9981 opt = xm;

Callers 1

__allocStructFunction · 0.70

Calls 2

__isNonNullPtrFunction · 0.70
tossFunction · 0.70

Tested by

no test coverage detected