[Webkit-unassigned] [Bug 152320] New: [JSC] TypedArray.prototype.slice() with no argument throws TypeError
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 15 17:45:06 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=152320
Bug ID: 152320
Summary: [JSC] TypedArray.prototype.slice() with no argument
throws TypeError
Classification: Unclassified
Product: WebKit
Version: Safari 9
Hardware: Unspecified
OS: Mac OS X 10.11
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: hur.ims at navercorp.com
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151216/f02887f7/attachment.html>
More information about the webkit-unassigned
mailing list