From 8cf3521acbe6cdf9a5b2e67bfaec364c83bff54b Mon Sep 17 00:00:00 2001 From: "ricow@chromium.org" Date: Thu, 14 Jan 2010 12:05:48 +0000 Subject: [PATCH] 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 --- src/array.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/array.js b/src/array.js index 824ee8fe3c..c3ab179da7 100644 --- a/src/array.js +++ b/src/array.js @@ -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;