]> git.kaiwu.me - njs.git/commit
Fixed %TypedArray%.prototype.join() with detached buffer.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 31 Aug 2021 13:16:44 +0000 (13:16 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 31 Aug 2021 13:16:44 +0000 (13:16 +0000)
commit0b717e25eeaa9fd0ca93f83ff698ad1d7ec274bd
tree551369f81ef8c101a5af45dcd57b174d59001f65
parent8b704dc7fd83bf8c449f6acc6d54773548b5e395
Fixed %TypedArray%.prototype.join() with detached buffer.

The TypedArray buffer may be detached while evaluating custom
"separator" argument.  The fix is to move the buffer check below this
point.

Found by Official ECMAScript Conformance Test Suite.
src/njs_typed_array.c
src/test/njs_unit_test.c