Skip to content

Commit

Permalink
[Test] node < 4 lacks ArrayBuffer.prototype.fill
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 22, 2021
1 parent b47d59e commit bb65b07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/cmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,9 @@ test('TypedArrays', { skip: !hasTypedArrays }, function (t) {
true
);

view1.fill(9); // change all values to 9's
for (var i = 0; i < view1.byteLength; i += 1) {
view1[i] = 9; // change all values to 9's
}

st.deepEqualTest(
view1,
Expand Down

0 comments on commit bb65b07

Please sign in to comment.