Skip to content

Commit

Permalink
Implement JsDataView (#2308)
Browse files Browse the repository at this point in the history
<!---
Thank you for contributing to Boa! Please fill out the template below, and remove or add any
information as you feel necessary.
--->

This Pull Request is related to #2098 .

It changes the following:

- Implements a wrapper for `DataView`
- Adds an example of `JsDataView` to the `JsArrayBuffer` example file under boa_examples


Co-authored-by: jedel1043 <[email protected]>
  • Loading branch information
nekevss and jedel1043 committed Oct 2, 2022
1 parent 7f1d1a9 commit eaf9428
Show file tree
Hide file tree
Showing 4 changed files with 495 additions and 6 deletions.
6 changes: 3 additions & 3 deletions boa_engine/src/builtins/dataview/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ use tap::{Conv, Pipe};

#[derive(Debug, Clone, Trace, Finalize)]
pub struct DataView {
viewed_array_buffer: JsObject,
byte_length: u64,
byte_offset: u64,
pub(crate) viewed_array_buffer: JsObject,
pub(crate) byte_length: u64,
pub(crate) byte_offset: u64,
}

impl BuiltIn for DataView {
Expand Down
Loading

0 comments on commit eaf9428

Please sign in to comment.