diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-01-24 15:10:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 15:10:49 -0500 |
commit | 5e32c5ea448563be91017d71bab060c8a6bd90fe (patch) | |
tree | aa9e731b9f4b9f6bc28beab23e7575d43bc14653 /core/bindings.rs | |
parent | 86726f88f1b6fd168fbd5b0d7e01b027cfc268ac (diff) |
s/PinnedBuf/ZeroCopyBuf (#3782)
Diffstat (limited to 'core/bindings.rs')
-rw-r--r-- | core/bindings.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/bindings.rs b/core/bindings.rs index 1c146934b..81858f5bd 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -2,7 +2,7 @@ use crate::es_isolate::EsIsolate; use crate::isolate::Isolate; -use crate::isolate::PinnedBuf; +use crate::isolate::ZeroCopyBuf; use rusty_v8 as v8; use v8::MapFnTo; @@ -405,9 +405,9 @@ fn send( Err(..) => &[], }; - let zero_copy: Option<PinnedBuf> = + let zero_copy: Option<ZeroCopyBuf> = v8::Local::<v8::ArrayBufferView>::try_from(args.get(2)) - .map(PinnedBuf::new) + .map(ZeroCopyBuf::new) .ok(); // If response is empty then it's either async op or exception was thrown |