diff options
author | Ry Dahl <ry@tinyclouds.org> | 2020-01-05 09:19:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-05 09:19:29 -0500 |
commit | 5f1df038fb1462607af3555fa7431c05ca484dce (patch) | |
tree | 0e819c1e1ec422b9573abc379c79fcbcc1cbd88c /deno_typescript/lib.rs | |
parent | c41280a057c9ca300afe43f2cb4f576e050f8cde (diff) |
Replace libdeno with rusty_v8 (#3556)
Diffstat (limited to 'deno_typescript/lib.rs')
-rw-r--r-- | deno_typescript/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/deno_typescript/lib.rs b/deno_typescript/lib.rs index e239f2011..e9a45d138 100644 --- a/deno_typescript/lib.rs +++ b/deno_typescript/lib.rs @@ -225,8 +225,7 @@ fn write_snapshot( ) -> Result<(), ErrBox> { println!("creating snapshot..."); let snapshot = runtime_isolate.snapshot()?; - let snapshot_slice = - unsafe { std::slice::from_raw_parts(snapshot.data_ptr, snapshot.data_len) }; + let snapshot_slice: &[u8] = &*snapshot; println!("snapshot bytes {}", snapshot_slice.len()); let snapshot_path = bundle.with_extension("bin"); |