Skip to content

Commit

Permalink
[Tests] handle some additional test differences in node <= 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 7, 2023
1 parent e158993 commit 197a220
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/cmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1250,12 +1250,13 @@ test('TypedArrays', { skip: !hasTypedArrays }, function (t) {
false
);

var isHigherThanNode010 = isNode && semver.satisfies(process.version, '> 0.10');
st.deepEqualTest(
buffer1,
buffer2,
'different ArrayBuffers',
true,
true
isHigherThanNode010,
isHigherThanNode010
);

// node < 0.11 has a nonconfigurable own byteLength property
Expand Down

0 comments on commit 197a220

Please sign in to comment.