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