This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
SIMD.js has been taken out of active development in TC39 and removed from Stage 3. It is not being pursued by web browsers for implementation anymore. SIMD operations exposed to the web are under active development within WebAssembly, with operations based on the SIMD.js operations.
SIMD.%type%.toSource() method returns a string representing the source code of the object.
SIMD.Float32x4.toSource() SIMD.Float64x2.toSource() SIMD.Int8x16.toSource() SIMD.Int16x8.toSource() SIMD.Int32x4.toSource() SIMD.Uint8x16.toSource() SIMD.Uint16x8.toSource() SIMD.Uint32x4.toSource() SIMD.Bool8x16.toSource() SIMD.Bool16x8.toSource() SIMD.Bool32x4.toSource() SIMD.Bool64x2.toSource()
String representing the source code of the object.
toSource() with a Float32x4
var a = SIMD.Float32x4(11, 22, 33, 44); a.toSource(); // "SIMD.Float32x4(11, 22, 33, 44)"
Not part of any standard or specification.