Skip to content

Commit c5d1851

Browse files
bnoordhuisjasnell
authored andcommitted
test: drop v5.x-specific code path from simd test
PR-URL: #11346 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 7ee9504 commit c5d1851

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

test/parallel/test-util-inspect-simd.js

+9-16
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,17 @@ assert.strictEqual(
4040
inspect(SIMD.Int8x16()),
4141
'Int8x16 [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]');
4242

43-
// The SIMD types below are not available in v5.
44-
if (typeof SIMD.Uint16x8 === 'function') {
45-
assert.strictEqual(
46-
inspect(SIMD.Uint16x8()),
47-
'Uint16x8 [ 0, 0, 0, 0, 0, 0, 0, 0 ]');
48-
}
43+
assert.strictEqual(
44+
inspect(SIMD.Uint16x8()),
45+
'Uint16x8 [ 0, 0, 0, 0, 0, 0, 0, 0 ]');
4946

50-
if (typeof SIMD.Uint32x4 === 'function') {
51-
assert.strictEqual(
52-
inspect(SIMD.Uint32x4()),
53-
'Uint32x4 [ 0, 0, 0, 0 ]');
54-
}
47+
assert.strictEqual(
48+
inspect(SIMD.Uint32x4()),
49+
'Uint32x4 [ 0, 0, 0, 0 ]');
5550

56-
if (typeof SIMD.Uint8x16 === 'function') {
57-
assert.strictEqual(
58-
inspect(SIMD.Uint8x16()),
59-
'Uint8x16 [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]');
60-
}
51+
assert.strictEqual(
52+
inspect(SIMD.Uint8x16()),
53+
'Uint8x16 [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]');
6154

6255
// Tests from test-inspect.js that should not fail with --harmony_simd.
6356
assert.strictEqual(inspect([]), '[]');

0 commit comments

Comments
 (0)