Skip to content

Commit

Permalink
Fix slicing error
Browse files Browse the repository at this point in the history
  • Loading branch information
raskad committed Sep 19, 2021
1 parent 0d6b3ac commit a30ba1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/src/builtins/array_buffer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ impl ArrayBuffer {

// 6. Else, let rawValue be a List whose elements are bytes from block at indices byteIndex (inclusive) through byteIndex + elementSize (exclusive).
// 7. Assert: The number of elements in rawValue is elementSize.
let raw_value = &block[byte_index..element_size];
let raw_value = &block[byte_index..byte_index+element_size];

// TODO: Agent Record [[LittleEndian]] filed
// 8. If isLittleEndian is not present, set isLittleEndian to the value of the [[LittleEndian]] field of the surrounding agent's Agent Record.
Expand Down

0 comments on commit a30ba1c

Please sign in to comment.