Non-standard
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.
The non-standard SIMD.%type%.toSource()
method returns a string representing the source code of the object.
Syntax
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()
Return value
A String
representing the source code of the object.
Examples
Using toSource()
with a Float32x4
var a = SIMD.Float32x4(11, 22, 33, 44); a.toSource(); // "SIMD.Float32x4(11, 22, 33, 44)"
Specifications
Not part of any standard or specification.
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | No support | Nightly build | No support | No support | No support |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | No support | No support | Nightly build | No support | No support | No support |