Reviewers: Mads Ager,
Description:
Removed check on element in case it is undefined in ArrayIndexOf -
according to
spec this is OK.
Please review this at http://codereview.chromium.org/545056
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/array.js
Index: src/array.js
===================================================================
--- src/array.js (revision 3595)
+++ src/array.js (working copy)
@@ -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