You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LayoutTests/js/array-find-expected.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -42,8 +42,8 @@ Modification during search
42
42
PASS [0,1,2,3,4,5,6,7,8,9].find(findItemAddedDuringSearch) is undefined
43
43
PASS [0,1,2,3,4,5,6,7,8,9].find(findItemRemovedDuringSearch) is undefined
44
44
Exceptions
45
-
PASS Array.prototype.find.call(undefined, function() {}) threw exception TypeError: Array.prototype.find requires that |this| not be undefined.
46
-
PASS Array.prototype.find.call(null, function() {}) threw exception TypeError: Array.prototype.find requires that |this| not be null.
45
+
PASS Array.prototype.find.call(undefined, function() {}) threw exception TypeError: Array.prototype.find requires that |this| not be null or undefined.
46
+
PASS Array.prototype.find.call(null, function() {}) threw exception TypeError: Array.prototype.find requires that |this| not be null or undefined.
47
47
PASS [].find(1) threw exception TypeError: Array.prototype.find callback must be a function.
48
48
PASS [].find('hello') threw exception TypeError: Array.prototype.find callback must be a function.
49
49
PASS [].find([]) threw exception TypeError: Array.prototype.find callback must be a function.
Copy file name to clipboardExpand all lines: LayoutTests/js/array-findIndex-expected.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,8 @@ Modification during search
43
43
PASS [0,1,2,3,4,5,6,7,8,9].findIndex(findItemAddedDuringSearch) is -1
44
44
PASS [0,1,2,3,4,5,6,7,8,9].findIndex(findItemRemovedDuringSearch) is -1
45
45
Exceptions
46
-
PASS Array.prototype.findIndex.call(undefined, function() {}) threw exception TypeError: Array.prototype.findIndex requires that |this| not be undefined.
47
-
PASS Array.prototype.findIndex.call(null, function() {}) threw exception TypeError: Array.prototype.findIndex requires that |this| not be null.
46
+
PASS Array.prototype.findIndex.call(undefined, function() {}) threw exception TypeError: Array.prototype.findIndex requires that |this| not be null or undefined.
47
+
PASS Array.prototype.findIndex.call(null, function() {}) threw exception TypeError: Array.prototype.findIndex requires that |this| not be null or undefined.
48
48
PASS [].findIndex(1) threw exception TypeError: Array.prototype.findIndex callback must be a function.
49
49
PASS [].findIndex('hello') threw exception TypeError: Array.prototype.findIndex callback must be a function.
50
50
PASS [].findIndex([]) threw exception TypeError: Array.prototype.findIndex callback must be a function.
Copy file name to clipboardExpand all lines: LayoutTests/js/dom/array-prototype-properties-expected.txt
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -5,25 +5,25 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
5
5
6
6
PASS Array.prototype.toString.call(undefined) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.toString.call(undefined)').
7
7
PASS Array.prototype.toLocaleString.call(undefined) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.toLocaleString.call(undefined)').
8
-
PASS Array.prototype.concat.call(undefined, []) threw exception TypeError: Array.prototype.concat requires that |this| not be undefined.
8
+
PASS Array.prototype.concat.call(undefined, []) threw exception TypeError: Array.prototype.concat requires that |this| not be null or undefined.
9
9
PASS Array.prototype.join.call(undefined, []) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.join.call(undefined, [])').
10
10
PASS Array.prototype.pop.call(undefined) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.pop.call(undefined)').
11
11
PASS Array.prototype.push.call(undefined, {}) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.push.call(undefined, {})').
12
12
PASS Array.prototype.reverse.call(undefined) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.reverse.call(undefined)').
13
13
PASS Array.prototype.shift.call(undefined) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.shift.call(undefined)').
14
14
PASS Array.prototype.slice.call(undefined, 0, 1) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.slice.call(undefined, 0, 1)').
15
-
PASS Array.prototype.sort.call(undefined) threw exception TypeError: Array.prototype.sort requires that |this| not be undefined.
15
+
PASS Array.prototype.sort.call(undefined) threw exception TypeError: Array.prototype.sort requires that |this| not be null or undefined.
16
16
PASS Array.prototype.splice.call(undefined, 0, 1) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.splice.call(undefined, 0, 1)').
17
17
PASS Array.prototype.unshift.call(undefined, {}) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.unshift.call(undefined, {})').
18
-
PASS Array.prototype.every.call(undefined, toString) threw exception TypeError: Array.prototype.every requires that |this| not be undefined.
19
-
PASS Array.prototype.forEach.call(undefined, toString) threw exception TypeError: Array.prototype.forEach requires that |this| not be undefined.
20
-
PASS Array.prototype.some.call(undefined, toString) threw exception TypeError: Array.prototype.some requires that |this| not be undefined.
18
+
PASS Array.prototype.every.call(undefined, toString) threw exception TypeError: Array.prototype.every requires that |this| not be null or undefined.
19
+
PASS Array.prototype.forEach.call(undefined, toString) threw exception TypeError: Array.prototype.forEach requires that |this| not be null or undefined.
20
+
PASS Array.prototype.some.call(undefined, toString) threw exception TypeError: Array.prototype.some requires that |this| not be null or undefined.
21
21
PASS Array.prototype.indexOf.call(undefined, 0) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.indexOf.call(undefined, 0)').
22
22
PASS Array.prototype.lastIndexOf.call(undefined, 0) threw exception TypeError: undefined is not an object (evaluating 'Array.prototype.lastIndexOf.call(undefined, 0)').
23
-
PASS Array.prototype.filter.call(undefined, toString) threw exception TypeError: Array.prototype.filter requires that |this| not be undefined.
24
-
PASS Array.prototype.reduce.call(undefined, toString) threw exception TypeError: Array.prototype.reduce requires that |this| not be undefined.
25
-
PASS Array.prototype.reduceRight.call(undefined, toString) threw exception TypeError: Array.prototype.reduceRight requires that |this| not be undefined.
26
-
PASS Array.prototype.map.call(undefined, toString) threw exception TypeError: Array.prototype.map requires that |this| not be undefined.
23
+
PASS Array.prototype.filter.call(undefined, toString) threw exception TypeError: Array.prototype.filter requires that |this| not be null or undefined.
24
+
PASS Array.prototype.reduce.call(undefined, toString) threw exception TypeError: Array.prototype.reduce requires that |this| not be null or undefined.
25
+
PASS Array.prototype.reduceRight.call(undefined, toString) threw exception TypeError: Array.prototype.reduceRight requires that |this| not be null or undefined.
26
+
PASS Array.prototype.map.call(undefined, toString) threw exception TypeError: Array.prototype.map requires that |this| not be null or undefined.
shouldThrow("String.prototype.localeCompare.call(undefined, '1224')","'TypeError: String.prototype.localeCompare requires that |this| not be undefined'");
23
+
shouldThrow("String.prototype.localeCompare.call(undefined, '1224')","'TypeError: String.prototype.localeCompare requires that |this| not be null or undefined'");
PASS String.prototype.concat.call(undefined, 'five') threw exception TypeError: Type error.
11
11
PASS String.prototype.indexOf.call(undefined, '2') threw exception TypeError: Type error.
12
12
PASS String.prototype.lastIndexOf.call(undefined, '2') threw exception TypeError: Type error.
13
-
PASS String.prototype.match.call(undefined, /2+/) threw exception TypeError: String.prototype.match requires that |this| not be undefined.
14
-
PASS String.prototype.replace.call(undefined, /2+/, '-') threw exception TypeError: String.prototype.replace requires that |this| not be undefined.
15
-
PASS String.prototype.search.call(undefined, '4') threw exception TypeError: String.prototype.search requires that |this| not be undefined.
13
+
PASS String.prototype.match.call(undefined, /2+/) threw exception TypeError: String.prototype.match requires that |this| not be null or undefined.
14
+
PASS String.prototype.replace.call(undefined, /2+/, '-') threw exception TypeError: String.prototype.replace requires that |this| not be null or undefined.
15
+
PASS String.prototype.search.call(undefined, '4') threw exception TypeError: String.prototype.search requires that |this| not be null or undefined.
16
16
PASS String.prototype.slice.call(undefined, 1, 3) threw exception TypeError: Type error.
17
-
PASS String.prototype.split.call(undefined, '2') threw exception TypeError: String.prototype.split requires that |this| not be undefined.
17
+
PASS String.prototype.split.call(undefined, '2') threw exception TypeError: String.prototype.split requires that |this| not be null or undefined.
18
18
PASS String.prototype.slice.call(undefined, 1, 3) threw exception TypeError: Type error.
19
19
PASS String.prototype.substr.call(undefined, 1, 3) threw exception TypeError: Type error.
20
20
PASS String.prototype.substring.call(undefined, 1, 3) threw exception TypeError: Type error.
21
21
PASS String.prototype.toLowerCase.call(undefined) threw exception TypeError: Type error.
22
22
PASS String.prototype.toUpperCase.call(undefined) threw exception TypeError: Type error.
23
-
PASS String.prototype.localeCompare.call(undefined, '1224') threw exception TypeError: String.prototype.localeCompare requires that |this| not be undefined.
23
+
PASS String.prototype.localeCompare.call(undefined, '1224') threw exception TypeError: String.prototype.localeCompare requires that |this| not be null or undefined.
24
24
PASS String.prototype.toLocaleLowerCase.call(undefined) threw exception TypeError: Type error.
25
25
PASS String.prototype.toLocaleUpperCase.call(undefined) threw exception TypeError: Type error.
26
26
PASS String.prototype.trim.call(undefined) threw exception TypeError: Type error.
shouldThrow("Array.prototype.findIndex.call(undefined, function() {})","'TypeError: Array.prototype.findIndex requires that |this| not be undefined'");
107
-
shouldThrow("Array.prototype.findIndex.call(null, function() {})","'TypeError: Array.prototype.findIndex requires that |this| not be null'");
106
+
shouldThrow("Array.prototype.findIndex.call(undefined, function() {})","'TypeError: Array.prototype.findIndex requires that |this| not be null or undefined'");
107
+
shouldThrow("Array.prototype.findIndex.call(null, function() {})","'TypeError: Array.prototype.findIndex requires that |this| not be null or undefined'");
108
108
shouldThrow("[].findIndex(1)","'TypeError: Array.prototype.findIndex callback must be a function'");
109
109
shouldThrow("[].findIndex('hello')","'TypeError: Array.prototype.findIndex callback must be a function'");
110
110
shouldThrow("[].findIndex([])","'TypeError: Array.prototype.findIndex callback must be a function'");
shouldThrow("String.prototype.localeCompare.call()","'TypeError: String.prototype.localeCompare requires that |this| not be undefined'");
11
-
shouldThrow("String.prototype.localeCompare.call(undefined)","'TypeError: String.prototype.localeCompare requires that |this| not be undefined'");
12
-
shouldThrow("String.prototype.localeCompare.call(null)","'TypeError: String.prototype.localeCompare requires that |this| not be null'");
10
+
shouldThrow("String.prototype.localeCompare.call()","'TypeError: String.prototype.localeCompare requires that |this| not be null or undefined'");
11
+
shouldThrow("String.prototype.localeCompare.call(undefined)","'TypeError: String.prototype.localeCompare requires that |this| not be null or undefined'");
12
+
shouldThrow("String.prototype.localeCompare.call(null)","'TypeError: String.prototype.localeCompare requires that |this| not be null or undefined'");
0 commit comments