森建 (2017-04-29T13:27:00.000Z)
moriken at kimamass.com (2017-04-29T13:42:17.310Z)
Proxy of TypedArray doesn't have [[TypedArrayName]] and [[ViewedArrayBuffer]] slots. so probably, [22.2.3.5.1 ValidateTypedArray](http://www.ecma-international.org/ecma-262/7.0/#sec-validatetypedarray) throws TypeError like following code. ```js const uint8 = new Uint8Array([1, 2, 3, 4]); const proxy = new Proxy(uint8, {}); proxy.map(e => e + 1); // -> TypeError for(const val of proxy) { console.log(val); // -> TypeError } ``` Is this behavior taken into account?
moriken at kimamass.com (2017-04-29T13:29:39.729Z)
Proxy of TypedArray doesn't have [[TypedArrayName]] and [[ViewedArrayBuffer]] slots. so maybe, [22.2.3.5.1 ValidateTypedArray](http://www.ecma-international.org/ecma-262/7.0/#sec-validatetypedarray) throws TypeError like following code. ```js const uint8 = new Uint8Array([1, 2, 3, 4]); const proxy = new Proxy(uint8, {}); proxy.map(e => e + 1); // -> TypeError for(const val of proxy) { console.log(val); // -> TypeError } ``` Is this behavior taken into account?