[njs] Removed inappropriate "prototype" property for Math object.

Dmitry Volyntsev xeioex at nginx.com
Fri Jun 30 03:39:19 UTC 2023


details:   https://hg.nginx.org/njs/rev/9371326836d2
branches:  
changeset: 2165:9371326836d2
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Mon Jun 26 16:47:17 2023 -0700
description:
Removed inappropriate "prototype" property for Math object.

diffstat:

 src/njs_math.c |  2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diffs (12 lines):

diff -r 9537c55033d2 -r 9371326836d2 src/njs_math.c
--- a/src/njs_math.c	Thu Jun 22 15:40:36 2023 -0700
+++ b/src/njs_math.c	Mon Jun 26 16:47:17 2023 -0700
@@ -383,8 +383,6 @@ static const njs_object_prop_t  njs_math
         .configurable = 1,
     },
 
-    NJS_DECLARE_PROP_HANDLER("prototype", njs_object_prototype_create, 0, 0, 0),
-
     NJS_DECLARE_PROP_VALUE("E", njs_value(NJS_NUMBER, 1, M_E), 0),
 
     NJS_DECLARE_PROP_VALUE("LN10", njs_value(NJS_NUMBER, 1, M_LN10), 0),


More information about the nginx-devel mailing list