]> git.kaiwu.me - njs.git/commit
Fixed String.fromCharCode() for code points > 65535 and NaN.
authorValentin Bartenev <vbart@nginx.com>
Sat, 27 Jul 2019 13:12:26 +0000 (16:12 +0300)
committerValentin Bartenev <vbart@nginx.com>
Sat, 27 Jul 2019 13:12:26 +0000 (16:12 +0300)
commitba90f06ea4cdc6521d01ced4ad9c69bacdd0e90f
tree336ddb9c0525a24cdd193282f2dca892acbd2506
parent0b4030fdd9a320ce3f0190be4cd5b216dd89a9a8
Fixed String.fromCharCode() for code points > 65535 and NaN.

According to the specification the code units must be truncated to uint16.
njs/njs_number.h
njs/njs_string.c
njs/test/njs_interactive_test.c
njs/test/njs_unit_test.c
nxt/nxt_utf8.h