You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, despite the lack of documentation, examples or tests, I've figured out how to read most values I needed from function arguments. But I haven't been able to read an ArrayBuffer or ArrayBufferView.
Here's one of my attempts:
use v8::*;fntestf(info: value::FunctionCallbackInfo) -> Result<Value,Value>{let arr = info.args[0].into_array_buffer_view().unwrap();println!("{:?}", arr);Ok(Value::from(value::undefined(&info.isolate)))}
for which I get
29 | let arr = info.args[0].into_array_buffer().unwrap();
| ^^^^^^^^^^^^ cannot move out of indexed content
The text was updated successfully, but these errors were encountered:
Hi, despite the lack of documentation, examples or tests, I've figured out how to read most values I needed from function arguments. But I haven't been able to read an ArrayBuffer or ArrayBufferView.
Here's one of my attempts:
for which I get
The text was updated successfully, but these errors were encountered: