Fix crash in NapiClass_ConstructorFunction due to incorrect handling of newTarget (#20552)

Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
This commit is contained in:
Jarred Sumner
2025-06-23 19:50:09 -07:00
committed by GitHub
parent 2081e5b656
commit bc79a48ce4
10 changed files with 362 additions and 193 deletions

View File

@@ -19,6 +19,10 @@ test_get_value_string_any_encoding(const Napi::CallbackInfo &info) {
std::array<Element, BUFSIZE> buf;
napi_value string = info[0];
#ifndef _WIN32
BlockingStdoutScope stdout_scope;
#endif
size_t full_length;
NODE_API_CALL(env,
get_value_string_fn(env, string, nullptr, 0, &full_length));