| Index: test/mjsunit/es6/typedarray.js
|
| diff --git a/test/mjsunit/es6/typedarray.js b/test/mjsunit/es6/typedarray.js
|
| index c43ba1c4bff0e8d3a4422e7e5d5555c941b7ab0a..563ee66e1dd851b913976c0907e2bafcfee34b21 100644
|
| --- a/test/mjsunit/es6/typedarray.js
|
| +++ b/test/mjsunit/es6/typedarray.js
|
| @@ -529,6 +529,8 @@ function TestTypedArraySet() {
|
|
|
| assertThrows(function() { a.set(0); }, TypeError);
|
| assertThrows(function() { a.set(0, 1); }, TypeError);
|
| +
|
| + assertEquals(1, a.set.length);
|
| }
|
|
|
| TestTypedArraySet();
|
| @@ -693,6 +695,19 @@ function TestDataViewPropertyTypeChecks() {
|
| CheckProperty("buffer");
|
| CheckProperty("byteOffset");
|
| CheckProperty("byteLength");
|
| +
|
| + function CheckGetSetLength(name) {
|
| + assertEquals(1, DataView.prototype["get" + name].length);
|
| + assertEquals(2, DataView.prototype["set" + name].length);
|
| + }
|
| + CheckGetSetLength("Int8");
|
| + CheckGetSetLength("Uint8");
|
| + CheckGetSetLength("Int16");
|
| + CheckGetSetLength("Uint16");
|
| + CheckGetSetLength("Int32");
|
| + CheckGetSetLength("Uint32");
|
| + CheckGetSetLength("Float32");
|
| + CheckGetSetLength("Float64");
|
| }
|
|
|
|
|
|
|