Welcome! Log In Create A New Profile

Advanced

[njs] Throwing exception when prototype is not found.

Anonymous User
November 22, 2024 01:56PM
details: https://github.com/nginx/njs/commit/983b397b016cc0854268394559098ae030d36eb4
branches: master
commit: 983b397b016cc0854268394559098ae030d36eb4
user: Dmitry Volyntsev <xeioex@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
Subject Author Views Posted

[njs] Throwing exception when prototype is not found.

Anonymous User 128 November 22, 2024 01:56PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 205
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready