Chromium Code Reviews| Index: test/mjsunit/es6/typedarray-fill.js |
| diff --git a/test/mjsunit/es6/typedarray-fill.js b/test/mjsunit/es6/typedarray-fill.js |
| index 000c41441384ac4fb355245641ef282bf0296a59..67f51c9cf5911faa70048beca11c1b929a8781a4 100644 |
| --- a/test/mjsunit/es6/typedarray-fill.js |
| +++ b/test/mjsunit/es6/typedarray-fill.js |
| @@ -40,6 +40,10 @@ for (var constructor of typedArrayConstructors) { |
| assertThrows('constructor.prototype.fill.call(undefined)', TypeError); |
| assertThrows('constructor.prototype.fill.call([])', TypeError); |
| + assertArrayEquals([0, 0, 0, 0, 0], new constructor([0, 0, 0, 0, 0]).fill(false)); |
| + assertArrayEquals([1, 1, 1, 1, 1], new constructor([0, 0, 0, 0, 0]).fill(true)); |
| + assertArrayEquals([0, 0, 0, 0, 0], new constructor([0, 0, 0, 0, 0]).fill(null)); |
|
Camillo Bruni
2017/03/22 21:26:50
please add the same for undefined :)
rongjie
2017/03/23 00:01:49
Done.
|
| + |
| // Test ToNumber |
| var s = ""; |
| var p = new Proxy({}, {get(t,k) { s += k.toString() + '\n'; return Reflect.get(t, k)}}) |