SIMD functions that take a lane index (extractLane, replaceLane, swizzle,
shuffle) should use ToNumber() to coerce the lane index to a number before
checking that the index is an integer in range.
This behavior corresponds to the SIMDToLane() function in the SIMD.js
specification.
SIMD functions that take a lane index (extractLane, replaceLane, swizzle, shuffle) should use ToNumber() to coerce the lane index to a number before checking that the index is an integer in range.
This behavior corresponds to the SIMDToLane() function in the SIMD.js specification.
This fixes issues #319 and #237.