node/test/addons-napi/test_string
Michael Dawson 00d094f9c3 n-api: add check for large strings
n-api uses size_t for the size of strings when specifying
string lengths.  V8 only supports a size of int.  Add
a check so that an error will be returned if the user
passes in a string with a size larger than will fit into
an int.

Backport-PR-URL: https://github.com/nodejs/node/pull/19447
PR-URL: https://github.com/nodejs/node/pull/15611
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
2018-04-16 17:46:07 -04:00
..
binding.gyp n-api: add support for abi stable module API 2018-04-16 17:45:48 -04:00
test.js n-api: add check for large strings 2018-04-16 17:46:07 -04:00
test_string.c n-api: add check for large strings 2018-04-16 17:46:07 -04:00