]> git.kaiwu.me - njs.git/commit
Fixed RegExp() instance properties.
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 6 Dec 2019 11:44:11 +0000 (14:44 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Fri, 6 Dec 2019 11:44:11 +0000 (14:44 +0300)
commit4b35e08c6cb49051883b28692ab56e8710bc83e2
tree49f5a7c09b170a09a9f12ed6c693fa10613f4236
parent7efb174b1f98c8870d12f8840a5f3dd54532d043
Fixed RegExp() instance properties.

1) "lastIndex" is the only own property descriptor.
2) "lastIndex" property descriptor is writable.
3) "lastIndex" is coersed to integer in RegExpBuiltinExec() and
   can be any value (not only positive integers).
src/njs_array.c
src/njs_builtin.c
src/njs_object.h
src/njs_regexp.c
src/njs_regexp.h
src/njs_string.c
src/njs_value.h
src/njs_vm.h
src/test/njs_unit_test.c