(msg)
| 106 | // Builds the exact error shape the non-SB implementation (the native FFI |
| 107 | // invoker) produces. |
| 108 | function 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 | |
| 115 | function throwFFIArgCountError(expected, actual) { |
| 116 | throwFFIArgError( |
no outgoing calls
no test coverage detected
searching dependent graphs…