mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: drop v5.x-specific code path from simd test
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
7ee95045dd
commit
c5d1851ac4
1 file changed
+9
-16
@@ -40,24 +40,17 @@ assert.strictEqual(
|
||||
inspect(SIMD.Int8x16()),
|
||||
'Int8x16 [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]');
|
||||
|
||||
// The SIMD types below are not available in v5.
|
||||
if (typeof SIMD.Uint16x8 === 'function') {
|
||||
assert.strictEqual(
|
||||
inspect(SIMD.Uint16x8()),
|
||||
'Uint16x8 [ 0, 0, 0, 0, 0, 0, 0, 0 ]');
|
||||
}
|
||||
assert.strictEqual(
|
||||
inspect(SIMD.Uint16x8()),
|
||||
'Uint16x8 [ 0, 0, 0, 0, 0, 0, 0, 0 ]');
|
||||
|
||||
if (typeof SIMD.Uint32x4 === 'function') {
|
||||
assert.strictEqual(
|
||||
inspect(SIMD.Uint32x4()),
|
||||
'Uint32x4 [ 0, 0, 0, 0 ]');
|
||||
}
|
||||
assert.strictEqual(
|
||||
inspect(SIMD.Uint32x4()),
|
||||
'Uint32x4 [ 0, 0, 0, 0 ]');
|
||||
|
||||
if (typeof SIMD.Uint8x16 === 'function') {
|
||||
assert.strictEqual(
|
||||
inspect(SIMD.Uint8x16()),
|
||||
'Uint8x16 [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]');
|
||||
}
|
||||
assert.strictEqual(
|
||||
inspect(SIMD.Uint8x16()),
|
||||
'Uint8x16 [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]');
|
||||
|
||||
// Tests from test-inspect.js that should not fail with --harmony_simd.
|
||||
assert.strictEqual(inspect([]), '[]');
|
||||
|
||||
Reference in new issue
Block a user