| OLD | NEW |
| (Empty) |
| 1 This tests for caller property in functions. Only functions that are called from
inside of other functions and have a parent should have this property set. Test
s return true when caller is found and false when the caller is null. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS childHasCallerWhenExecutingGlobalCode is false | |
| 7 PASS childHasCallerWhenCalledWithoutParent is false | |
| 8 PASS childHasCallerWhenCalledFromWithinParent is true | |
| 9 PASS nonStrictCaller(nonStrictCallee) is nonStrictCaller | |
| 10 FAIL nonStrictCaller(strictCallee) should throw TypeError: Type error. Threw exc
eption TypeError: 'caller', 'callee', and 'arguments' properties may not be acce
ssed on strict mode functions or the arguments objects for calls to them. | |
| 11 FAIL strictCaller(nonStrictCallee) should throw TypeError: Function.caller used
to retrieve strict caller. Was null. | |
| 12 FAIL strictCaller(strictCallee) should throw TypeError: Type error. Threw except
ion TypeError: 'caller', 'callee', and 'arguments' properties may not be accesse
d on strict mode functions or the arguments objects for calls to them. | |
| 13 PASS nonStrictCaller(boundNonStrictCallee) is nonStrictCaller | |
| 14 FAIL nonStrictCaller(boundStrictCallee) should throw TypeError: Type error. Thre
w exception TypeError: 'caller', 'callee', and 'arguments' properties may not be
accessed on strict mode functions or the arguments objects for calls to them. | |
| 15 FAIL strictCaller(boundNonStrictCallee) should throw TypeError: Function.caller
used to retrieve strict caller. Was null. | |
| 16 FAIL strictCaller(boundStrictCallee) should throw TypeError: Type error. Threw e
xception TypeError: 'caller', 'callee', and 'arguments' properties may not be ac
cessed on strict mode functions or the arguments objects for calls to them. | |
| 17 PASS nonStrictGetter(nonStrictAccessor) is nonStrictGetter | |
| 18 PASS nonStrictSetter(nonStrictAccessor) is true | |
| 19 FAIL nonStrictGetter(strictAccessor) should throw TypeError: Type error. Threw e
xception TypeError: 'caller', 'callee', and 'arguments' properties may not be ac
cessed on strict mode functions or the arguments objects for calls to them. | |
| 20 FAIL nonStrictSetter(strictAccessor) should throw TypeError: Type error. Threw e
xception TypeError: 'caller', 'callee', and 'arguments' properties may not be ac
cessed on strict mode functions or the arguments objects for calls to them. | |
| 21 FAIL strictGetter(nonStrictAccessor) should throw TypeError: Function.caller use
d to retrieve strict caller. Was null. | |
| 22 FAIL strictSetter(nonStrictAccessor) should throw TypeError: Function.caller use
d to retrieve strict caller. Was undefined. | |
| 23 FAIL strictGetter(strictAccessor) should throw TypeError: Type error. Threw exce
ption TypeError: 'caller', 'callee', and 'arguments' properties may not be acces
sed on strict mode functions or the arguments objects for calls to them. | |
| 24 FAIL strictSetter(strictAccessor) should throw TypeError: Type error. Threw exce
ption TypeError: 'caller', 'callee', and 'arguments' properties may not be acces
sed on strict mode functions or the arguments objects for calls to them. | |
| 25 PASS successfullyParsed is true | |
| 26 | |
| 27 TEST COMPLETE | |
| 28 | |
| OLD | NEW |