mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implement Blob methods (text/arraybuffer) and async file read method
This commit is contained in:
parent
1b7223a284
commit
9859410193
8 changed files with 188 additions and 115 deletions
|
@ -202,7 +202,7 @@ fn run_form_data_algorithm(
|
|||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
fn run_array_buffer_data_algorithm(cx: JSContext, bytes: Vec<u8>) -> Fallible<FetchedData> {
|
||||
pub fn run_array_buffer_data_algorithm(cx: JSContext, bytes: Vec<u8>) -> Fallible<FetchedData> {
|
||||
rooted!(in(*cx) let mut array_buffer_ptr = ptr::null_mut::<JSObject>());
|
||||
let arraybuffer = unsafe {
|
||||
ArrayBuffer::create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue