size = (uint32_t) num;
if ((double) size != num) {
- njs_range_error(vm, NULL, NULL);
+ njs_range_error(vm, NULL);
return NXT_ERROR;
}
length = (uint32_t) num;
if ((double) length != num) {
- njs_range_error(vm, "Invalid array length", NULL);
+ njs_range_error(vm, "Invalid array length");
return NJS_ERROR;
}
n = njs_array_iterator_index(array, iter);
if (n == NJS_ARRAY_INVALID_INDEX) {
- njs_type_error(vm, "invalid index", NULL);
+ njs_type_error(vm, "invalid index");
return NXT_ERROR;
}
return NXT_OK;
}
- njs_type_error(vm, "unexpected iterator arguments", NULL);
+ njs_type_error(vm, "unexpected iterator arguments");
return NXT_ERROR;
}
n = njs_array_reduce_right_index(array, iter);
if (n == NJS_ARRAY_INVALID_INDEX) {
- njs_type_error(vm, "invalid index", NULL);
+ njs_type_error(vm, "invalid index");
return NXT_ERROR;
}
njs_object_value_t *hash;
if (nxt_slow_path(nargs < 2 || !njs_is_string(&args[1]))) {
- njs_type_error(vm, "algorithm must be a string", NULL);
+ njs_type_error(vm, "algorithm must be a string");
return NJS_ERROR;
}
njs_object_value_t *hash;
if (nxt_slow_path(nargs < 2 || !njs_is_string(&args[1]))) {
- njs_type_error(vm, "data must be a string", NULL);
+ njs_type_error(vm, "data must be a string");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_object_value(&args[0]))) {
- njs_type_error(vm, "'this' is not an object_value", NULL);
+ njs_type_error(vm, "'this' is not an object_value");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_data(&args[0].data.u.object_value->value))) {
- njs_type_error(vm, "value of 'this' is not a data type", NULL);
+ njs_type_error(vm, "value of 'this' is not a data type");
return NJS_ERROR;
}
dgst = njs_value_data(&hash->value);
if (nxt_slow_path(dgst->alg == NULL)) {
- njs_error(vm, "Digest already called", NULL);
+ njs_error(vm, "Digest already called");
return NJS_ERROR;
}
njs_object_value_t *hash;
if (nxt_slow_path(nargs > 1 && !njs_is_string(&args[1]))) {
- njs_type_error(vm, "encoding must be a string", NULL);
+ njs_type_error(vm, "encoding must be a string");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_object_value(&args[0]))) {
- njs_type_error(vm, "'this' is not an object_value", NULL);
+ njs_type_error(vm, "'this' is not an object_value");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_data(&args[0].data.u.object_value->value))) {
- njs_type_error(vm, "value of 'this' is not a data type", NULL);
+ njs_type_error(vm, "value of 'this' is not a data type");
return NJS_ERROR;
}
dgst = njs_value_data(&hash->value);
if (nxt_slow_path(dgst->alg == NULL)) {
- njs_error(vm, "Digest already called", NULL);
+ njs_error(vm, "Digest already called");
return NJS_ERROR;
}
njs_object_value_t *hmac;
if (nxt_slow_path(nargs < 2 || !njs_is_string(&args[1]))) {
- njs_type_error(vm, "algorithm must be a string", NULL);
+ njs_type_error(vm, "algorithm must be a string");
return NJS_ERROR;
}
if (nxt_slow_path(nargs < 3 || !njs_is_string(&args[2]))) {
- njs_type_error(vm, "key must be a string", NULL);
+ njs_type_error(vm, "key must be a string");
return NJS_ERROR;
}
njs_object_value_t *hmac;
if (nxt_slow_path(nargs < 2 || !njs_is_string(&args[1]))) {
- njs_type_error(vm, "data must be a string", NULL);
+ njs_type_error(vm, "data must be a string");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_object_value(&args[0]))) {
- njs_type_error(vm, "'this' is not an object_value", NULL);
+ njs_type_error(vm, "'this' is not an object_value");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_data(&args[0].data.u.object_value->value))) {
- njs_type_error(vm, "value of 'this' is not a data type", NULL);
+ njs_type_error(vm, "value of 'this' is not a data type");
return NJS_ERROR;
}
ctx = njs_value_data(&hmac->value);
if (nxt_slow_path(ctx->alg == NULL)) {
- njs_error(vm, "Digest already called", NULL);
+ njs_error(vm, "Digest already called");
return NJS_ERROR;
}
njs_object_value_t *hmac;
if (nxt_slow_path(nargs > 1 && !njs_is_string(&args[1]))) {
- njs_type_error(vm, "encoding must be a string", NULL);
+ njs_type_error(vm, "encoding must be a string");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_object_value(&args[0]))) {
- njs_type_error(vm, "'this' is not an object_value", NULL);
+ njs_type_error(vm, "'this' is not an object_value");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_data(&args[0].data.u.object_value->value))) {
- njs_type_error(vm, "value of 'this' is not a data type", NULL);
+ njs_type_error(vm, "value of 'this' is not a data type");
return NJS_ERROR;
}
ctx = njs_value_data(&hmac->value);
if (nxt_slow_path(ctx->alg == NULL)) {
- njs_error(vm, "Digest already called", NULL);
+ njs_error(vm, "Digest already called");
return NJS_ERROR;
}
return njs_string_new(vm, &vm->retval, buf, size, size);
}
- njs_range_error(vm, NULL, NULL);
+ njs_range_error(vm, NULL);
return NXT_ERROR;
}
}
}
- njs_type_error(vm, "'this' argument is not an object", NULL);
+ njs_type_error(vm, "'this' argument is not an object");
return NXT_ERROR;
}
static const njs_value_t default_name = njs_string("Error");
if (nargs < 1 || !njs_is_object(&args[0])) {
- njs_type_error(vm, "'this' argument is not an object", NULL);
+ njs_type_error(vm, "'this' argument is not an object");
return NXT_ERROR;
}
#define njs_error(vm, fmt, ...) \
- njs_exception_error_create(vm, NJS_OBJECT_ERROR, fmt, __VA_ARGS__)
+ njs_exception_error_create(vm, NJS_OBJECT_ERROR, fmt, ##__VA_ARGS__)
#define njs_eval_error(vm, fmt, ...) \
- njs_exception_error_create(vm, NJS_OBJECT_EVAL_ERROR, fmt, __VA_ARGS__)
+ njs_exception_error_create(vm, NJS_OBJECT_EVAL_ERROR, fmt, ##__VA_ARGS__)
#define njs_internal_error(vm, fmt, ...) \
- njs_exception_error_create(vm, NJS_OBJECT_INTERNAL_ERROR, fmt, __VA_ARGS__)
+ njs_exception_error_create(vm, NJS_OBJECT_INTERNAL_ERROR, fmt, ##__VA_ARGS__)
#define njs_range_error(vm, fmt, ...) \
- njs_exception_error_create(vm, NJS_OBJECT_RANGE_ERROR, fmt, __VA_ARGS__)
+ njs_exception_error_create(vm, NJS_OBJECT_RANGE_ERROR, fmt, ##__VA_ARGS__)
#define njs_reference_error(vm, fmt, ...) \
- njs_exception_error_create(vm, NJS_OBJECT_REF_ERROR, fmt, __VA_ARGS__)
+ njs_exception_error_create(vm, NJS_OBJECT_REF_ERROR, fmt, ##__VA_ARGS__)
#define njs_syntax_error(vm, fmt, ...) \
- njs_exception_error_create(vm, NJS_OBJECT_SYNTAX_ERROR, fmt, __VA_ARGS__)
+ njs_exception_error_create(vm, NJS_OBJECT_SYNTAX_ERROR, fmt, ##__VA_ARGS__)
#define njs_type_error(vm, fmt, ...) \
- njs_exception_error_create(vm, NJS_OBJECT_TYPE_ERROR, fmt, __VA_ARGS__)
+ njs_exception_error_create(vm, NJS_OBJECT_TYPE_ERROR, fmt, ##__VA_ARGS__)
#define njs_uri_error(vm, fmt, ...) \
- njs_exception_error_create(vm, NJS_OBJECT_URI_ERROR, fmt, __VA_ARGS__)
+ njs_exception_error_create(vm, NJS_OBJECT_URI_ERROR, fmt, ##__VA_ARGS__)
void njs_exception_error_create(njs_vm_t *vm, njs_value_type_t type,
const char* fmt, ...);
nxt_lvlhsh_query_t lhq;
if (nxt_slow_path(nargs < 3)) {
- njs_type_error(vm, "too few arguments", NULL);
+ njs_type_error(vm, "too few arguments");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_string(&args[1]))) {
- njs_type_error(vm, "path must be a string", NULL);
+ njs_type_error(vm, "path must be a string");
return NJS_ERROR;
}
} else {
njs_type_error(vm, "Unknown options type "
- "(a string or object required)", NULL);
+ "(a string or object required)");
return NJS_ERROR;
}
if (nxt_slow_path(nargs < 4 || !njs_is_function(&args[3]))) {
- njs_type_error(vm, "callback must be a function", NULL);
+ njs_type_error(vm, "callback must be a function");
return NJS_ERROR;
}
} else {
if (nxt_slow_path(!njs_is_function(&args[2]))) {
- njs_type_error(vm, "callback must be a function", NULL);
+ njs_type_error(vm, "callback must be a function");
return NJS_ERROR;
}
nxt_lvlhsh_query_t lhq;
if (nxt_slow_path(nargs < 2)) {
- njs_type_error(vm, "too few arguments", NULL);
+ njs_type_error(vm, "too few arguments");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_string(&args[1]))) {
- njs_type_error(vm, "path must be a string", NULL);
+ njs_type_error(vm, "path must be a string");
return NJS_ERROR;
}
} else {
njs_type_error(vm, "Unknown options type "
- "(a string or object required)", NULL);
+ "(a string or object required)");
return NJS_ERROR;
}
}
nxt_lvlhsh_query_t lhq;
if (nxt_slow_path(nargs < 4)) {
- njs_type_error(vm, "too few arguments", NULL);
+ njs_type_error(vm, "too few arguments");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_string(&args[1]))) {
- njs_type_error(vm, "path must be a string", NULL);
+ njs_type_error(vm, "path must be a string");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_string(&args[2]))) {
- njs_type_error(vm, "data must be a string", NULL);
+ njs_type_error(vm, "data must be a string");
return NJS_ERROR;
}
} else {
njs_type_error(vm, "Unknown options type "
- "(a string or object required)", NULL);
+ "(a string or object required)");
return NJS_ERROR;
}
if (nxt_slow_path(nargs < 5 || !njs_is_function(&args[4]))) {
- njs_type_error(vm, "callback must be a function", NULL);
+ njs_type_error(vm, "callback must be a function");
return NJS_ERROR;
}
} else {
if (nxt_slow_path(!njs_is_function(&args[3]))) {
- njs_type_error(vm, "callback must be a function", NULL);
+ njs_type_error(vm, "callback must be a function");
return NJS_ERROR;
}
nxt_lvlhsh_query_t lhq;
if (nxt_slow_path(nargs < 3)) {
- njs_type_error(vm, "too few arguments", NULL);
+ njs_type_error(vm, "too few arguments");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_string(&args[1]))) {
- njs_type_error(vm, "path must be a string", NULL);
+ njs_type_error(vm, "path must be a string");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_string(&args[2]))) {
- njs_type_error(vm, "data must be a string", NULL);
+ njs_type_error(vm, "data must be a string");
return NJS_ERROR;
}
} else {
njs_type_error(vm, "Unknown options type "
- "(a string or object required)", NULL);
+ "(a string or object required)");
return NJS_ERROR;
}
}
ret = nxt_lvlhsh_insert(&error->hash, &lhq);
if (nxt_slow_path(ret != NXT_OK)) {
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NJS_ERROR;
}
}
ret = nxt_lvlhsh_insert(&error->hash, &lhq);
if (nxt_slow_path(ret != NXT_OK)) {
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NJS_ERROR;
}
}
ret = nxt_lvlhsh_insert(&error->hash, &lhq);
if (nxt_slow_path(ret != NXT_OK)) {
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NJS_ERROR;
}
}
spare_size = nxt_align_size(spare_size, NJS_FRAME_SPARE_SIZE);
if (vm->stack_size + spare_size > NJS_MAX_STACK_SIZE) {
- njs_range_error(vm, "Maximum call stack size exceeded", NULL);
+ njs_range_error(vm, "Maximum call stack size exceeded");
return NULL;
}
njs_function_t *function;
if (!njs_is_function(&args[0])) {
- njs_type_error(vm, "'this' argument is not a function", NULL);
+ njs_type_error(vm, "'this' argument is not a function");
return NXT_ERROR;
}
njs_function_t *function;
if (!njs_is_function(&args[0])) {
- njs_type_error(vm, "'this' argument is not a function", NULL);
+ njs_type_error(vm, "'this' argument is not a function");
return NXT_ERROR;
}
if (nargs > 2) {
if (!njs_is_array(&args[2])) {
- njs_type_error(vm, "second argument is not an array", NULL);
+ njs_type_error(vm, "second argument is not an array");
return NXT_ERROR;
}
njs_function_t *function;
if (!njs_is_function(&args[0])) {
- njs_type_error(vm, "'this' argument is not a function", NULL);
+ njs_type_error(vm, "'this' argument is not a function");
return NXT_ERROR;
}
njs_eval_function(njs_vm_t *vm, njs_value_t *args, nxt_uint_t nargs,
njs_index_t unused)
{
- njs_internal_error(vm, "Not implemented", NULL);
+ njs_internal_error(vm, "Not implemented");
return NXT_ERROR;
}
default:
nxt_thread_log_debug("unknown token: %d", node->token);
- njs_syntax_error(vm, "unknown token", NULL);
+ njs_syntax_error(vm, "unknown token");
return NXT_ERROR;
}
}
}
- njs_parser_syntax_error(vm, parser, "Illegal continue statement", NULL);
+ njs_parser_syntax_error(vm, parser, "Illegal continue statement");
return NXT_ERROR;
}
}
- njs_parser_syntax_error(vm, parser, "Illegal break statement", NULL);
+ njs_parser_syntax_error(vm, parser, "Illegal break statement");
return NXT_ERROR;
parser->code_size, code_size);
if (nxt_slow_path(parser->code_size < code_size)) {
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NXT_ERROR;
}
ret = nxt_lvlhsh_insert(&object->hash, &lhq);
if (nxt_slow_path(ret != NXT_OK)) {
- njs_internal_error(ctx->vm, NULL, NULL);
+ njs_internal_error(ctx->vm, NULL);
return NULL;
}
ret = njs_array_add(ctx->vm, array, element);
if (nxt_slow_path(ret != NXT_OK)) {
- njs_internal_error(ctx->vm, NULL, NULL);
+ njs_internal_error(ctx->vm, NULL);
return NULL;
}
}
if (nxt_slow_path(ret != NXT_OK)) {
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NXT_ERROR;
}
break;
default:
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NXT_ERROR;
}
}
break;
default:
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NXT_ERROR;
}
break;
default:
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NXT_ERROR;
}
break;
default:
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NXT_ERROR;
}
if (stringify->stack.items >= 32) {
njs_type_error(stringify->vm,
- "Nested too deep or a cyclic structure", NULL);
+ "Nested too deep or a cyclic structure");
return NULL;
}
return njs_json_buf_append(stringify, "null", 4);
default:
- njs_type_error(stringify->vm, "Non-serializable object", NULL);
+ njs_type_error(stringify->vm, "Non-serializable object");
return NXT_DECLINED;
}
}
nxt_lvlhsh_query_t lhq;
if (nargs < 2) {
- njs_type_error(vm, "missing path", NULL);
+ njs_type_error(vm, "missing path");
return NJS_ERROR;
}
radix = args[1].data.u.number;
if (radix < 2 || radix > 36 || radix != (int) radix) {
- njs_range_error(vm, NULL, NULL);
+ njs_range_error(vm, NULL);
return NXT_ERROR;
}
}
}
- njs_type_error(vm, "cannot get property 'unknown' of undefined", NULL);
+ njs_type_error(vm, "cannot get property 'unknown' of undefined");
return NXT_ERROR;
}
}
if (!value->data.u.object->extensible) {
- njs_type_error(vm, "object is not extensible", NULL);
+ njs_type_error(vm, "object is not extensible");
return NXT_ERROR;
}
descriptor = njs_arg(args, nargs, 3);
if (!njs_is_object(descriptor)){
- njs_type_error(vm, "descriptor is not an object", NULL);
+ njs_type_error(vm, "descriptor is not an object");
return NXT_ERROR;
}
}
if (!value->data.u.object->extensible) {
- njs_type_error(vm, "object is not extensible", NULL);
+ njs_type_error(vm, "object is not extensible");
return NXT_ERROR;
}
descriptor = njs_arg(args, nargs, 2);
if (!njs_is_object(descriptor)) {
- njs_type_error(vm, "descriptor is not an object", NULL);
+ njs_type_error(vm, "descriptor is not an object");
return NXT_ERROR;
}
}
/* Memory allocation or NXT_DECLINED error. */
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NULL;
}
}
/* Memory allocation or NXT_DECLINED error. */
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
return NULL;
}
scope = scope->parent)
{
if (scope->type == NJS_SCOPE_GLOBAL) {
- njs_parser_syntax_error(vm, parser, "Illegal return statement",
- NULL);
+ njs_parser_syntax_error(vm, parser, "Illegal return statement");
return NXT_ERROR;
}
if (dflt != NULL) {
njs_parser_syntax_error(vm, parser,
"More than one default clause "
- "in switch statement", NULL);
+ "in switch statement");
return NJS_TOKEN_ILLEGAL;
}
parser->lexer->text.start);
} else {
- njs_parser_syntax_error(vm, parser, "Unexpected end of input", NULL);
+ njs_parser_syntax_error(vm, parser, "Unexpected end of input");
}
return NJS_TOKEN_ILLEGAL;
if (!njs_parser_is_lvalue(parser->node)) {
njs_parser_ref_error(vm, parser,
- "Invalid left-hand side in assignment", NULL);
+ "Invalid left-hand side in assignment");
return NJS_TOKEN_ILLEGAL;
}
if (!njs_parser_is_lvalue(parser->node)) {
njs_parser_ref_error(vm, parser,
- "Invalid left-hand side in assignment", NULL);
+ "Invalid left-hand side in assignment");
return NJS_TOKEN_ILLEGAL;
}
if (!njs_parser_is_lvalue(parser->node)) {
njs_parser_ref_error(vm, parser,
- "Invalid left-hand side in prefix operation",
- NULL);
+ "Invalid left-hand side in prefix operation");
return NJS_TOKEN_ILLEGAL;
}
if (!njs_parser_is_lvalue(parser->node)) {
njs_parser_ref_error(vm, parser,
- "Invalid left-hand side in postfix operation",
- NULL);
+ "Invalid left-hand side in postfix operation");
return NJS_TOKEN_ILLEGAL;
}
if (nxt_fast_path(ret >= 0)) {
if (nxt_slow_path((u_int) ret != pattern->ncaptures)) {
- njs_internal_error(vm, NULL, NULL);
+ njs_internal_error(vm, NULL);
nxt_mem_cache_free(vm->mem_cache_pool, pattern);
return NULL;
}
trace = trace->next;
p = trace->handler(trace, td, start);
- njs_internal_error(vm, (const char *) start, NULL);
+ njs_internal_error(vm, (const char *) start);
return p;
}
return njs_regexp_string_create(vm, &vm->retval, source, size, length);
}
- njs_type_error(vm, "'this' argument is not a regexp", NULL);
+ njs_type_error(vm, "'this' argument is not a regexp");
return NXT_ERROR;
}
njs_regexp_pattern_t *pattern;
if (!njs_is_regexp(&args[0])) {
- njs_type_error(vm, "'this' argument is not a regexp", NULL);
+ njs_type_error(vm, "'this' argument is not a regexp");
return NXT_ERROR;
}
nxt_regex_match_data_t *match_data;
if (!njs_is_regexp(&args[0])) {
- njs_type_error(vm, "'this' argument is not a regexp", NULL);
+ njs_type_error(vm, "'this' argument is not a regexp");
return NXT_ERROR;
}
}
if (nxt_slow_path(!njs_is_string(&args[1]))) {
- njs_type_error(vm, "encoding must be a string", NULL);
+ njs_type_error(vm, "encoding must be a string");
return NJS_ERROR;
}
(void) njs_string_prop(&string, &value);
if (nxt_slow_path(string.length != 0)) {
- njs_type_error(vm, "argument must be a byte string", NULL);
+ njs_type_error(vm, "argument must be a byte string");
return NJS_ERROR;
}
njs_string_prop_t string;
if (njs_is_null_or_void(&args[0])) {
- njs_type_error(vm, "'this' argument is null or undefined", NULL);
+ njs_type_error(vm, "'this' argument is null or undefined");
return NXT_ERROR;
}
range_error:
- njs_range_error(vm, NULL, NULL);
+ njs_range_error(vm, NULL);
return NXT_ERROR;
}
n = args[1].data.u.number;
if (nxt_slow_path(n < 0 || n >= max)) {
- njs_range_error(vm, NULL, NULL);
+ njs_range_error(vm, NULL);
return NXT_ERROR;
}
}
uri_error:
- njs_uri_error(vm, NULL, NULL);
+ njs_uri_error(vm, NULL);
return NXT_ERROR;
}
njs_vm_ops_t *ops;
if (nxt_slow_path(nargs < 2)) {
- njs_type_error(vm, "too few arguments", NULL);
+ njs_type_error(vm, "too few arguments");
return NJS_ERROR;
}
if (nxt_slow_path(!njs_is_function(&args[1]))) {
- njs_type_error(vm, "first arg must be a function", NULL);
+ njs_type_error(vm, "first arg must be a function");
return NJS_ERROR;
}
ops = vm->ops;
if (nxt_slow_path(ops == NULL)) {
- njs_internal_error(vm, "not supported by host environment", NULL);
+ njs_internal_error(vm, "not supported by host environment");
return NJS_ERROR;
}
event->host_event = ops->set_timer(vm->external, delay, event);
if (event->host_event == NULL) {
- njs_internal_error(vm, "set_timer() failed", NULL);
+ njs_internal_error(vm, "set_timer() failed");
return NJS_ERROR;
}
index = (index >> NJS_SCOPE_SHIFT) + 1;
if (index > 255 || vs.scope->argument_closures == 0) {
- njs_internal_error(vm, "too many argument closures", NULL);
+ njs_internal_error(vm, "too many argument closures");
return NULL;
}
case NJS_PRIMITIVE_VALUE:
case NJS_STRING_VALUE:
- njs_type_error(vm, "property in on a primitive value", NULL);
+ njs_type_error(vm, "property in on a primitive value");
return NXT_ERROR;
static njs_value_t prototype_string = njs_string("prototype");
if (!njs_is_function(constructor)) {
- njs_type_error(vm, "right argument is not a function", NULL);
+ njs_type_error(vm, "right argument is not a function");
return NXT_ERROR;
}
}
}
- njs_type_error(vm, "object is not callable", NULL);
+ njs_type_error(vm, "object is not callable");
return NXT_ERROR;
}
}
if (ret == NXT_ERROR) {
- njs_type_error(vm, "cannot evaluate an object's value",
- NULL);
+ njs_type_error(vm, "cannot evaluate an object's value");
}
return ret;