[njs] Throwing exception when prototype is not found.
noreply at nginx.com
noreply at nginx.com
Fri Nov 22 18:54:02 UTC 2024
details: https://github.com/nginx/njs/commit/983b397b016cc0854268394559098ae030d36eb4
branches: master
commit: 983b397b016cc0854268394559098ae030d36eb4
user: Dmitry Volyntsev <xeioex at 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 {
More information about the nginx-devel
mailing list