mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
src: minor cleanups on OneByteString usage
* Provide a OneByteString variant that accepts std::string_view * Use FIXED_ONE_BYTE_STRING in appropriate places Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/56482 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
c0ad1937d0
commit
7b472fdfe7
18 files changed
+92
-74
No files matched your search
+1
-1
@@ -1735,7 +1735,7 @@ static void Initialize(Local<Object> target,
|
||||
"StatementSync",
|
||||
StatementSync::GetConstructorTemplate(env));
|
||||
|
||||
target->Set(context, OneByteString(isolate, "constants"), constants).Check();
|
||||
target->Set(context, env->constants_string(), constants).Check();
|
||||
}
|
||||
|
||||
} // namespace sqlite
|
||||
|
||||
Reference in new issue
Block a user