diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2017-02-13 18:16:14 +0100 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-02-15 09:53:36 -0800 |
commit | 2ba4eeadbb816068139759957c8443565a4d795a (patch) | |
tree | e32f9e5c8e346734adf3077bd0e89ab5e091f65e /test | |
parent | c5d1851ac4adffd75e105a9a6b1c4139e12906d0 (diff) | |
download | android-node-v8-2ba4eeadbb816068139759957c8443565a4d795a.tar.gz android-node-v8-2ba4eeadbb816068139759957c8443565a4d795a.tar.bz2 android-node-v8-2ba4eeadbb816068139759957c8443565a4d795a.zip |
lib: remove simd support from util.format()
Upstream V8 is removing SIMD support. Be proactive and follow suit.
Refs: https://bugs.chromium.org/p/v8/issues/detail?id=4124
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.js | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/test/parallel/test-util-inspect-simd.js b/test/parallel/test-util-inspect-simd.js deleted file mode 100644 index 280bd0b5a4..0000000000 --- a/test/parallel/test-util-inspect-simd.js +++ /dev/null @@ -1,62 +0,0 @@ -// Flags: --harmony_simd -/* global SIMD */ -'use strict'; - -require('../common'); -const assert = require('assert'); -const inspect = require('util').inspect; - -assert.strictEqual( - inspect(SIMD.Bool16x8()), - 'Bool16x8 [ false, false, false, false, false, false, false, false ]'); - -assert.strictEqual( - inspect(SIMD.Bool32x4()), - 'Bool32x4 [ false, false, false, false ]'); - -assert.strictEqual( - inspect(SIMD.Bool8x16()), - 'Bool8x16 [\n false,\n false,\n false,\n false,\n false,\n' + - ' false,\n false,\n false,\n false,\n false,\n false,\n' + - ' false,\n false,\n false,\n false,\n false ]'); - -assert.strictEqual( - inspect(SIMD.Bool32x4()), - 'Bool32x4 [ false, false, false, false ]'); - -assert.strictEqual( - inspect(SIMD.Float32x4()), - 'Float32x4 [ NaN, NaN, NaN, NaN ]'); - -assert.strictEqual( - inspect(SIMD.Int16x8()), - 'Int16x8 [ 0, 0, 0, 0, 0, 0, 0, 0 ]'); - -assert.strictEqual( - inspect(SIMD.Int32x4()), - 'Int32x4 [ 0, 0, 0, 0 ]'); - -assert.strictEqual( - inspect(SIMD.Int8x16()), - 'Int8x16 [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]'); - -assert.strictEqual( - inspect(SIMD.Uint16x8()), - 'Uint16x8 [ 0, 0, 0, 0, 0, 0, 0, 0 ]'); - -assert.strictEqual( - inspect(SIMD.Uint32x4()), - 'Uint32x4 [ 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([]), '[]'); -assert.strictEqual(inspect([0]), '[ 0 ]'); -assert.strictEqual(inspect({}), '{}'); -assert.strictEqual(inspect({foo: 42}), '{ foo: 42 }'); -assert.strictEqual(inspect(null), 'null'); -assert.strictEqual(inspect(true), 'true'); -assert.strictEqual(inspect(false), 'false'); |