]> git.kaiwu.me - njs.git/commit
Aligned Number constructor to the spec.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 30 Mar 2023 03:28:33 +0000 (20:28 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 30 Mar 2023 03:28:33 +0000 (20:28 -0700)
commit8e73c2ce5776592d2f9261072a7ee9fd073ab0ae
tree47090bf8b8c40e39cfc3dbb890df066a12efaaba
parente503f57252d2e53ec19edacab95ff9686acdb293
Aligned Number constructor to the spec.

Previously, negative hexadecimal numbers were accepted as valid,
whereas they are invalid input for the constructor.
Also previously, the constructor did not accepted positive binary or
octadecimal numbers as valid.

This closes #630 issue on Github.
src/njs_lexer.c
src/njs_number.c
src/njs_number.h
src/njs_string.c
src/njs_value.h
src/njs_value_conversion.h
src/njs_vmcode.c
src/test/njs_unit_test.c