mirror of https://github.com/nodejs/node.git
tools: use using-declaration consistently
PR-URL: https://github.com/nodejs/node/pull/36245 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>pull/36249/head
parent
6eec858f34
commit
0a23d65a62
|
@ -25,7 +25,7 @@ void WriteVector(std::stringstream* ss, const T* vec, size_t size) {
|
|||
}
|
||||
}
|
||||
|
||||
std::string FormatBlob(v8::StartupData* blob,
|
||||
std::string FormatBlob(StartupData* blob,
|
||||
const std::vector<size_t>& isolate_data_indexes,
|
||||
const EnvSerializeInfo& env_info) {
|
||||
std::stringstream ss;
|
||||
|
@ -75,9 +75,9 @@ const EnvSerializeInfo* NodeMainInstance::GetEnvSerializeInfo() {
|
|||
return ss.str();
|
||||
}
|
||||
|
||||
static v8::StartupData SerializeNodeContextInternalFields(Local<Object> holder,
|
||||
int index,
|
||||
void* env) {
|
||||
static StartupData SerializeNodeContextInternalFields(Local<Object> holder,
|
||||
int index,
|
||||
void* env) {
|
||||
void* ptr = holder->GetAlignedPointerFromInternalField(index);
|
||||
if (ptr == nullptr || ptr == env) {
|
||||
return StartupData{nullptr, 0};
|
||||
|
|
Loading…
Reference in New Issue