0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-21 15:04:33 -05:00

fix & clean

This commit is contained in:
crowlkats 2022-05-18 15:35:12 +02:00 committed by Bert Belder
parent f4a35fe7e5
commit 15c9a52781
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
2 changed files with 3 additions and 3 deletions

View file

@ -2329,7 +2329,7 @@ void v8__Proxy__Revoke(const v8::Proxy& self) { ptr_to_local(&self)->Revoke(); }
void v8__SnapshotCreator__CONSTRUCT(uninit_t<v8::SnapshotCreator>* buf,
const intptr_t* external_references,
StartupData* existing_blob) {
v8::StartupData* existing_blob) {
construct_in_place<v8::SnapshotCreator>(buf, external_references, existing_blob);
}

View file

@ -103,8 +103,8 @@ impl SnapshotCreator {
} else {
std::ptr::null()
};
let existing_blob_ptr = if let Some(er) = existing_blob {
&er
let existing_blob_ptr = if let Some(startup_data) = existing_blob {
&startup_data
} else {
std::ptr::null()
};