Removed check on element in case it is undefined in ArrayIndexOf - according to spec this is OK.
Review URL: http://codereview.chromium.org/545056 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3603 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
11bab3a5c4
commit
8cf3521acb
@ -983,9 +983,6 @@ function ArrayMap(f, receiver) {
|
||||
|
||||
|
||||
function ArrayIndexOf(element, index) {
|
||||
if (IS_UNDEFINED(element)) {
|
||||
throw MakeTypeError('array_indexof_not_defined', [element]);
|
||||
}
|
||||
var length = this.length;
|
||||
if (index == null) {
|
||||
index = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user