Array.prototype.find no longer skips holes

This commit is contained in:
Juan Ignacio Dopazo 2014-12-09 18:37:41 -08:00
parent b81b71eac2
commit d863423d1a
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}