MCPcopy Index your code
hub / github.com/nodejs/node / throwFFIArgError

Function throwFFIArgError

lib/internal/ffi-shared-buffer.js:108–113  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

106// Builds the exact error shape the non-SB implementation (the native FFI
107// invoker) produces.
108function throwFFIArgError(msg) {
109 // eslint-disable-next-line no-restricted-syntax
110 const err = new TypeError(msg);
111 err.code = 'ERR_INVALID_ARG_VALUE';
112 throw err;
113}
114
115function throwFFIArgCountError(expected, actual) {
116 throwFFIArgError(

Callers 3

throwFFIArgCountErrorFunction · 0.70
writeNumericArgFunction · 0.70
writePointerArgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…