node
node copied to clipboard
node-api: add support for UTF-8 and Latin-1 property keys
This commit addresses issue #52979. It introduces new functions for optimized property key creation:
node_api_create_property_key_utf8 node_api_create_property_key_latin1 These functions help in creating property keys that allow more efficient property access when reused multiple times.
This commit also includes:
Updates to documentation to reflect the addition of the new functions. New tests to ensure the correctness of the implementation. Additionally, this work is related to the previous PR node-api: refactor napi_set_property function for improved performance #50282, which covered the utf16 case.