From: Dmitry Volyntsev Date: Wed, 13 Nov 2024 06:57:48 +0000 (-0800) Subject: Throwing exception when prototype is not found. X-Git-Tag: 0.8.8~6 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=983b397b016cc0854268394559098ae030d36eb4;p=njs.git Throwing exception when prototype is not found. --- diff --git a/src/njs_object.c b/src/njs_object.c index f2aa46a3..65e80945 100644 --- a/src/njs_object.c +++ b/src/njs_object.c @@ -2159,6 +2159,8 @@ njs_object_prototype_create_constructor(njs_vm_t *vm, njs_object_prop_t *prop, } while (object != NULL); + njs_internal_error(vm, "prototype not found"); + return NJS_ERROR; } else {