| Index: test/mjsunit/harmony/simd.js
|
| diff --git a/test/mjsunit/harmony/simd.js b/test/mjsunit/harmony/simd.js
|
| index 2c07eefb59a35209a2aa1cfb67e0732939f944aa..6330ac8338a403a014b5a5076dd0eff232f296d8 100644
|
| --- a/test/mjsunit/harmony/simd.js
|
| +++ b/test/mjsunit/harmony/simd.js
|
| @@ -618,3 +618,17 @@ function TestSIMDObject() {
|
| assertSame(SIMD.Bool8x16, undefined);
|
| }
|
| TestSIMDObject()
|
| +
|
| +
|
| +function TestStringify(expected, input) {
|
| + assertEquals(expected, JSON.stringify(input));
|
| + assertEquals(expected, JSON.stringify(input, null, 0));
|
| +}
|
| +
|
| +TestStringify(undefined, SIMD.Float32x4(1, 2, 3, 4));
|
| +TestStringify('[null]', [SIMD.Float32x4(1, 2, 3, 4)]);
|
| +TestStringify('[{}]', [Object(SIMD.Float32x4(1, 2, 3, 4))]);
|
| +var simd_wrapper = Object(SIMD.Float32x4(1, 2, 3, 4));
|
| +TestStringify('{}', simd_wrapper);
|
| +simd_wrapper.a = 1;
|
| +TestStringify('{"a":1}', simd_wrapper);
|
|
|