mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-24 15:19:31 -05:00
fmt
This commit is contained in:
parent
6f671c05d0
commit
25b6329bf5
2 changed files with 6 additions and 2 deletions
|
@ -116,7 +116,10 @@ impl SnapshotCreator {
|
|||
/// Create and enter an isolate, and set it up for serialization.
|
||||
/// The isolate is created from scratch.
|
||||
#[inline(always)]
|
||||
pub fn new(external_references: Option<&'static ExternalReferences>, existing_blob: Option<&StartupData>) -> Self {
|
||||
pub fn new(
|
||||
external_references: Option<&'static ExternalReferences>,
|
||||
existing_blob: Option<&StartupData>,
|
||||
) -> Self {
|
||||
let mut snapshot_creator: MaybeUninit<Self> = MaybeUninit::uninit();
|
||||
let external_references_ptr = if let Some(er) = external_references {
|
||||
er.as_ptr()
|
||||
|
|
|
@ -3500,7 +3500,8 @@ fn snapshot_creator() {
|
|||
};
|
||||
|
||||
let startup_data = {
|
||||
let mut snapshot_creator = v8::SnapshotCreator::new(None, Some(&startup_data));
|
||||
let mut snapshot_creator =
|
||||
v8::SnapshotCreator::new(None, Some(&startup_data));
|
||||
// TODO(ry) this shouldn't be necessary. workaround unfinished business in
|
||||
// the scope type system.
|
||||
let mut isolate = unsafe { snapshot_creator.get_owned_isolate() };
|
||||
|
|
Loading…
Reference in a new issue