From d863423d1a643468556a13dce27b78b86d686519 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Dopazo Date: Tue, 9 Dec 2014 18:37:41 -0800 Subject: [PATCH] Array.prototype.find no longer skips holes --- .../Array/prototype/find/Array.prototype.find_skip-empty.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/built-ins/Array/prototype/find/Array.prototype.find_skip-empty.js b/test/built-ins/Array/prototype/find/Array.prototype.find_skip-empty.js index c935e2fd33..7607e74ad7 100644 --- a/test/built-ins/Array/prototype/find/Array.prototype.find_skip-empty.js +++ b/test/built-ins/Array/prototype/find/Array.prototype.find_skip-empty.js @@ -16,6 +16,6 @@ var b = a.find(function (v) { return v !== 1; }); -if (b !== 2) { - $ERROR('#1: b !== 2. Actual: ' + b); +if (b !== undefined) { + $ERROR('#1: b !== undefined. Actual: ' + b); }