util: fix formatting of objects with SIMD enabled · nodejs/node@1b24b37
@@ -59,3 +59,12 @@ if (typeof SIMD.Uint8x16 === 'function') {
5959inspect(SIMD.Uint8x16()),
6060'Uint8x16 [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]');
6161}
62+63+// Tests from test-inspect.js that should not fail with --harmony_simd.
64+assert.strictEqual(inspect([]), '[]');
65+assert.strictEqual(inspect([0]), '[ 0 ]');
66+assert.strictEqual(inspect({}), '{}');
67+assert.strictEqual(inspect({foo: 42}), '{ foo: 42 }');
68+assert.strictEqual(inspect(null), 'null');
69+assert.strictEqual(inspect(true), 'true');
70+assert.strictEqual(inspect(false), 'false');