| OLD | NEW |
| 1 Tests Function.bind. | 1 Tests Function.bind. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS result is "[object Window] -> x:1, y:2" | 6 PASS result is "[object Window] -> x:1, y:2" |
| 7 PASS result is "'a' -> x:'b', y:1" | 7 PASS result is "'a' -> x:'b', y:1" |
| 8 PASS result is "'a' -> x:'b', y:'c'" | 8 PASS result is "'a' -> x:'b', y:'c'" |
| 9 PASS result is "[object Object] -> x:1, y:2" | 9 PASS result is "[object Object] -> x:1, y:2" |
| 10 PASS result is "[object Object] -> x:'b', y:1" | 10 PASS result is "[object Object] -> x:'b', y:1" |
| 11 PASS result is "[object Object] -> x:'b', y:'c'" | 11 PASS result is "[object Object] -> x:'b', y:'c'" |
| 12 PASS f instanceof F is true | 12 PASS f instanceof F is true |
| 13 PASS f instanceof G is true | 13 PASS f instanceof G is true |
| 14 PASS f instanceof H is true | 14 PASS f instanceof H is true |
| 15 PASS g instanceof F is true | 15 PASS g instanceof F is true |
| 16 PASS g instanceof G is true | 16 PASS g instanceof G is true |
| 17 PASS g instanceof H is true | 17 PASS g instanceof H is true |
| 18 PASS h instanceof F is true | 18 PASS h instanceof F is true |
| 19 PASS h instanceof G is true | 19 PASS h instanceof G is true |
| 20 PASS h instanceof H is true | 20 PASS h instanceof H is true |
| 21 PASS "prototype" in F is true | 21 PASS "prototype" in F is true |
| 22 PASS "prototype" in G is false | 22 PASS "prototype" in G is false |
| 23 PASS "prototype" in H is false | 23 PASS "prototype" in H is false |
| 24 PASS Function.bind.call(undefined) threw exception TypeError: Bind must be calle
d on a function. | 24 PASS Function.bind.call(undefined) threw exception TypeError: Bind must be calle
d on a function. |
| 25 PASS abcAt(1) is "b" | 25 PASS abcAt(1) is "b" |
| 26 PASS new abcAt(1) threw exception TypeError: function is not a constructor. | 26 PASS new abcAt(1) threw exception TypeError: abcAt is not a constructor. |
| 27 PASS boundFunctionPrototypeAccessed is false | 27 PASS boundFunctionPrototypeAccessed is false |
| 28 PASS Function.bind.length is 1 | 28 PASS Function.bind.length is 1 |
| 29 PASS successfullyParsed is true | 29 PASS successfullyParsed is true |
| 30 | 30 |
| 31 TEST COMPLETE | 31 TEST COMPLETE |
| 32 | 32 |
| OLD | NEW |