Commit 8cf3521a authored by ricow@chromium.org's avatar ricow@chromium.org

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
parent 11bab3a5
...@@ -983,9 +983,6 @@ function ArrayMap(f, receiver) { ...@@ -983,9 +983,6 @@ function ArrayMap(f, receiver) {
function ArrayIndexOf(element, index) { function ArrayIndexOf(element, index) {
if (IS_UNDEFINED(element)) {
throw MakeTypeError('array_indexof_not_defined', [element]);
}
var length = this.length; var length = this.length;
if (index == null) { if (index == null) {
index = 0; index = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment