[Webkit-unassigned] [Bug 173181] New: TypedArray constructor with string shouldn't throw
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 9 14:23:22 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=173181
Bug ID: 173181
Summary: TypedArray constructor with string shouldn't throw
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jfbastien at apple.com
CC: fpizlo at apple.com, jfbastien at apple.com,
keith_miller at apple.com, mark.lam at apple.com,
msaboff at apple.com, sbarati at apple.com
Uint8Array("hi!") throws, it should instead do this:
https://tc39.github.io/ecma262/#sec-typedarray-length
IIUC it just coerces "hi!" to 0 and goes on its merry way. That's what Chrome does, whereas SM says `typein:1:2 TypeError: invalid arguments`.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170609/004c2ab5/attachment-0001.html>
More information about the webkit-unassigned
mailing list