diff options
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 |