Revision: 3603
Author: [email protected]
Date: Thu Jan 14 04:05:48 2010
Log: Removed check on element in case it is undefined in ArrayIndexOf -
according to spec this is OK.
Review URL: http://codereview.chromium.org/545056
http://code.google.com/p/v8/source/detail?r=3603
Modified:
/branches/bleeding_edge/src/array.js
=======================================
--- /branches/bleeding_edge/src/array.js Wed Jan 13 04:10:57 2010
+++ /branches/bleeding_edge/src/array.js Thu Jan 14 04:05:48 2010
@@ -983,9 +983,6 @@
function ArrayIndexOf(element, index) {
- if (IS_UNDEFINED(element)) {
- throw MakeTypeError('array_indexof_not_defined', [element]);
- }
var length = this.length;
if (index == null) {
index = 0;
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev