[Webkit-unassigned] [Bug 65885] New: Array.prototype.indexOf called on undefined should throw
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 8 15:56:28 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=65885
Summary: Array.prototype.indexOf called on undefined should
throw
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: paul.irish at gmail.com
[].indexOf.call(undefined, 6);
^ should throw a TypeError according to spec....
from: http://es5.github.com/#x15.4.4.14
1. Let O be the result of calling ToObject passing the `this` value as the argument.
and from the ToObject definition http://es5.github.com/#x9.9 ...
if ArgumentType is Undefined, then Throw a TypeError exception
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list