summaryrefslogtreecommitdiff
path: root/serde_v8/magic/detached_buffer.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-11-12 05:37:37 +0100
committerGitHub <noreply@github.com>2022-11-12 05:37:37 +0100
commitb88b7c92443aeacc269f9823a8ced06b08018f8a (patch)
treef4e0d6c161a6d84cd07404c35c7a02d18f1ab219 /serde_v8/magic/detached_buffer.rs
parentd81065cff9d2ac64f73ec29edeb6dae1fdf87f04 (diff)
chore: upgrade rusty_v8 to 0.55.0 (#16604)
<!-- Before submitting a PR, please read http://deno.land/manual/contributing 1. Give the PR a descriptive title. Examples of good title: - fix(std/http): Fix race condition in server - docs(console): Update docstrings - feat(doc): Handle nested reexports Examples of bad title: - fix #7123 - update docs - fix bugs 2. Ensure there is a related issue and it is referenced in the PR text. 3. Ensure there are tests that cover the changes. 4. Ensure `cargo test` passes. 5. Ensure `./tools/format.js` passes without changing files. 6. Ensure `./tools/lint.js` passes. -->
Diffstat (limited to 'serde_v8/magic/detached_buffer.rs')
-rw-r--r--serde_v8/magic/detached_buffer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/serde_v8/magic/detached_buffer.rs b/serde_v8/magic/detached_buffer.rs
index b35d4f66d..78232cbe7 100644
--- a/serde_v8/magic/detached_buffer.rs
+++ b/serde_v8/magic/detached_buffer.rs
@@ -63,7 +63,7 @@ impl FromV8 for DetachedBuffer {
return Err(crate::Error::ExpectedDetachable);
}
let store = b.get_backing_store();
- b.detach(); // Detach
+ b.detach(v8::undefined(scope).into()); // Detach
Ok(Self(V8Slice { store, range }))
}
}