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:
ricow@chromium.org 2010-01-14 12:05:48 +00:00
parent 11bab3a5c4
commit 8cf3521acb

View File

@ -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;