Skip to content

Commit

Permalink
Allow SharedArrayBuffer to be passed to DataView constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledecot committed Nov 9, 2023
1 parent 962f580 commit 41a1883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/js-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ extern "C" {
///
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)
#[wasm_bindgen(constructor)]
pub fn new(buffer: &ArrayBuffer, byteOffset: usize, byteLength: usize) -> DataView;
pub fn new(buffer: &JsValue, byteOffset: usize, byteLength: usize) -> DataView;

/// The ArrayBuffer referenced by this view. Fixed at construction time and thus read only.
///
Expand Down

0 comments on commit 41a1883

Please sign in to comment.