[Webkit-unassigned] [Bug 187510] New: [FileAPI] FileReader.readAsArrayBuffer(null) should throw a Type Error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 10 00:35:26 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=187510
Bug ID: 187510
Summary: [FileAPI] FileReader.readAsArrayBuffer(null) should
throw a Type Error
Product: WebKit
Version: Safari 11
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore JavaScript
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zac.spitzer at gmail.com
Webkit currently just returns, all other major browsers do a type check and throw an error
var reader = new FileReader();
reader.onloadend = function(e) {
console.log(e);
}
reader.readAsArrayBuffer(null);
https://jsbin.com/zonagopuhi/edit?html,js,console,output
https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/fileapi/FileReader.cpp#L79
Here is the Chrome commit which added type checking for FileReader
https://groups.google.com/a/chromium.org/forum/#!topic/blink-reviews/vZxyVFHJ7MU
--
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/20180710/f86f693d/attachment-0001.html>
More information about the webkit-unassigned
mailing list