summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2017-02-13 18:10:30 +0100
committerJames M Snell <jasnell@gmail.com>2017-02-15 09:53:28 -0800
commitc5d1851ac4adffd75e105a9a6b1c4139e12906d0 (patch)
treeb46be34ce8bf4abd8fd1ab810a79ed953439cc0c /test
parent7ee95045dd9ed5968792aec9c12b6b0054368dc6 (diff)
downloadandroid-node-v8-c5d1851ac4adffd75e105a9a6b1c4139e12906d0.tar.gz
android-node-v8-c5d1851ac4adffd75e105a9a6b1c4139e12906d0.tar.bz2
android-node-v8-c5d1851ac4adffd75e105a9a6b1c4139e12906d0.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-util-inspect-simd.js25
1 files changed, 9 insertions, 16 deletions
diff --git a/test/parallel/test-util-inspect-simd.js b/test/parallel/test-util-inspect-simd.js
index 5e0a274084..280bd0b5a4 100644
--- a/test/parallel/test-util-inspect-simd.js
+++ b/test/parallel/test-util-inspect-simd.js
@@ -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([]), '[]');