RESOLVED INVALID152320
[JSC] TypedArray.prototype.slice() with no argument throws TypeError
https://bugs.webkit.org/show_bug.cgi?id=152320
Summary [JSC] TypedArray.prototype.slice() with no argument throws TypeError
Jinyoung Hur
Reported 2015-12-15 17:45:06 PST
Below code throws TypeError saying, "Expected at least one argument". var arr = new Uint8Array([1,2,3]); arr.slice(); According to below reference, it seems that TypedArray.prototype.slice() should return [1,2,3] because, when omitted, begin is assumed to be zero and end is assumed to be array.length. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice
Attachments
Jinyoung Hur
Comment 1 2016-01-31 21:40:17 PST
I realized that TypedArray.prototype.slice() is not implemented yet in WebKit. I'm closing this bug.
Note You need to log in before you can comment on or make changes to this bug.