function JSBindingError(errCode, value) {
    // The error value may be "undefined", so check if the argument was provided
    const meta = arguments.length === 2 ? {value} : {};
    return createError(JS_ERROR_MESSAGES, errCode, meta);
}
Custom errors thrown from the JS bindings.
@private
@param {number} errCode     Error code from the H3 library
@param {unknown} [value]    Value to associate with the error, if any
@returns {Error}