diff options
author | Nimit <nimitagg95@gmail.com> | 2020-04-15 23:21:51 +0300 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2020-04-18 05:34:45 +0300 |
commit | e231e1a0d8857c70d6569f39d8d2e5b1955562b5 (patch) | |
tree | 4df7d521a339f49704f797cf94b74308a7a74956 /src/env.cc | |
parent | 1ce906c16ba09885fb372962a3a56ce64ef06a20 (diff) |
src: elevate v8 namespaces
elevate v8 namespaces. Leverage `using` semantics
for repeated usage of v8 artifacts.
PR-URL: https://github.com/nodejs/node/pull/32872
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Diffstat (limited to 'src/env.cc')
-rw-r--r-- | src/env.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env.cc b/src/env.cc index 444d9c0368e..f966bfba1ee 100644 --- a/src/env.cc +++ b/src/env.cc @@ -174,10 +174,10 @@ void IsolateData::CreateProperties() { #define V(Provider) \ async_wrap_providers_[AsyncWrap::PROVIDER_ ## Provider].Set( \ isolate_, \ - v8::String::NewFromOneByte( \ + String::NewFromOneByte( \ isolate_, \ reinterpret_cast<const uint8_t*>(#Provider), \ - v8::NewStringType::kInternalized, \ + NewStringType::kInternalized, \ sizeof(#Provider) - 1).ToLocalChecked()); NODE_ASYNC_PROVIDER_TYPES(V) #undef V |