From 983b397b016cc0854268394559098ae030d36eb4 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Tue, 12 Nov 2024 22:57:48 -0800 Subject: [PATCH] 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 { -- 2.47.3