TypedArray constructor with string shouldn't throw
https://bugs.webkit.org/show_bug.cgi?id=173181
Reviewed by JF Bastien.
JSTests:
We should be coercing primitive arguments to numbers in the various
TypedArray constructors.
* stress/typedarray-constructor.js:
Source/JavaScriptCore:
We should be coercing primitive arguments to numbers in the various
TypedArray constructors.
* runtime/JSGenericTypedArrayViewConstructorInlines.h:
(JSC::constructGenericTypedArrayViewWithArguments):
LayoutTests:
Update tests to allow null buffers.
* fast/canvas/webgl/array-unit-tests-expected.txt:
* fast/canvas/webgl/array-unit-tests.html:
* fast/canvas/webgl/webgl-array-invalid-ranges-expected.txt:
* fast/canvas/webgl/webgl-array-invalid-ranges.html:
* webgl/1.0.2/resources/webgl_test_files/conformance/typedarrays/array-unit-tests.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218082
268f45cc-cd09-0410-ab3c-
d52691b4dbfc