core: Add test for snapshotting from Rust (#2197)

This commit is contained in:
Ryan Dahl 2019-04-24 21:43:06 -04:00 committed by GitHub
parent f694823507
commit 7fc9d7d62a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 78 additions and 35 deletions

View file

@ -126,13 +126,6 @@ unsafe impl Send for deno_snapshot<'_> {}
/// The type returned from deno_snapshot_new. Needs to be dropped.
pub type Snapshot1<'a> = deno_snapshot<'a>;
// TODO Does this make sense?
impl Drop for Snapshot1<'_> {
fn drop(&mut self) {
unsafe { deno_snapshot_delete(self) }
}
}
/// The type created from slice. Used for loading.
pub type Snapshot2<'a> = deno_snapshot<'a>;