Skip to content

typeof ([].length = '') #27

@drsm

Description

@drsm

njs_value_number_set(retval, array->length);

diff -r e210675daceb njs/njs_array.c
--- a/njs/njs_array.c   Sun Jul 01 10:01:53 2018 +0300
+++ b/njs/njs_array.c   Sun Jul 01 13:11:29 2018 +0300
@@ -407,6 +407,9 @@
         }
 
         array->length = length;
+        retval = setval;
+
+        return NJS_OK;
     }
 
     njs_value_number_set(retval, array->length);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions