details: https://github.com/nginx/njs/commit/983b397b016cc0854268394559098ae030d36eb4 branches: master commit: 983b397b016cc0854268394559098ae030d36eb4 user: Dmitry Volyntsev <xei...@nginx.com> date: Tue, 12 Nov 2024 22:57:48 -0800 description: Throwing exception when prototype is not found.
--- src/njs_object.c | 2 ++ 1 file changed, 2 insertions(+) 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 { _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx-devel