mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
src: reuse cached env strings in remaining files
Follow-up to #59891, covering files it missed. Overlapping locations (node_ffi.cc, crypto_util.cc) were already handled by #64760. Refs: https://github.com/nodejs/node/pull/59891 Refs: https://github.com/nodejs/node/pull/64760 Refs: https://github.com/nodejs/node/pull/64912 Signed-off-by: leah-1ee <selee3196@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65039 Refs: https://github.com/nodejs/node/pull/59891 Refs: https://github.com/nodejs/node/pull/64760 Refs: https://github.com/nodejs/node/pull/64912 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
39ea929da7
commit
d7463b9dbc
2 files changed
+3
-7
No files matched your search
@@ -1382,11 +1382,7 @@ void CreatePerContextProperties(Local<Object> target,
|
||||
FIXED_ONE_BYTE_STRING(isolate, "dlopen"),
|
||||
dlopen_constants)
|
||||
.Check();
|
||||
os_constants
|
||||
->Set(env->context(),
|
||||
FIXED_ONE_BYTE_STRING(isolate, "errno"),
|
||||
err_constants)
|
||||
.Check();
|
||||
os_constants->Set(env->context(), env->errno_string(), err_constants).Check();
|
||||
os_constants
|
||||
->Set(env->context(),
|
||||
FIXED_ONE_BYTE_STRING(isolate, "signals"),
|
||||
|
||||
+2
-2
@@ -817,10 +817,10 @@ void CreatePerIsolateProperties(IsolateData* isolate_data,
|
||||
PropertyAttribute read_only = static_cast<PropertyAttribute>(
|
||||
PropertyAttribute::ReadOnly | PropertyAttribute::DontDelete);
|
||||
target->Set(FIXED_ONE_BYTE_STRING(isolate, "LOCK_MODE_SHARED"),
|
||||
FIXED_ONE_BYTE_STRING(isolate, "shared"),
|
||||
isolate_data->shared_string(),
|
||||
read_only);
|
||||
target->Set(FIXED_ONE_BYTE_STRING(isolate, "LOCK_MODE_EXCLUSIVE"),
|
||||
FIXED_ONE_BYTE_STRING(isolate, "exclusive"),
|
||||
isolate_data->exclusive_string(),
|
||||
read_only);
|
||||
target->Set(FIXED_ONE_BYTE_STRING(isolate, "LOCK_STOLEN_ERROR"),
|
||||
FIXED_ONE_BYTE_STRING(isolate, "LOCK_STOLEN"),
|
||||
|
||||
Reference in new issue
Block a user