WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
14993
Incorrect implementation of Array.prototype.indexOf
https://bugs.webkit.org/show_bug.cgi?id=14993
Summary
Incorrect implementation of Array.prototype.indexOf
Erik Arvidsson
Reported
2007-08-16 19:40:38 PDT
Given an array where elements have been removed indexOf will match undefined to the deleted elements. var a = [0, 1, 2, 3]; delete a[1]; a.indexOf(undefined) test case coming...
Attachments
Testcase
(515 bytes, text/html)
2007-08-16 19:41 PDT
,
Erik Arvidsson
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Erik Arvidsson
Comment 1
2007-08-16 19:41:49 PDT
Created
attachment 16002
[details]
Testcase All text should be green
Mark Rowe (bdash)
Comment 2
2007-08-16 20:12:57 PDT
Your test case gives me: 4 false false -1 All are green. That would suggest we're already handling this correctly?
Jeff Walden (remove +bwo to email)
Comment 3
2007-08-20 15:53:36 PDT
I strongly suspect this got fixed by my patch for
bug 12963
and that the nightly used to test this was out-of-date.
David Kilzer (:ddkilzer)
Comment 4
2007-08-20 22:13:15 PDT
Resolving as fixed per previous comments.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug