SIMD.%type%.prototype.toSource()

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

JavaScript
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

JavaScript
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

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/javascript/reference/global_objects/simd/tosource

JavaScript Method Non-standard Prototype SIMD