| OLD | NEW |
| (Empty) |
| 1 This test exercises the source expression offset information that is attached to
exception objects for the inspector. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 | |
| 7 Testing 'undefined.a++' | |
| 8 PASS ex.message == "'undefined' is not an object (evaluating 'undefined.a')" is
true | |
| 9 | |
| 10 Testing '++undefined.a' | |
| 11 PASS ex.message == "'undefined' is not an object (evaluating 'undefined.a')" is
true | |
| 12 | |
| 13 Testing 'undefined[0]++' | |
| 14 PASS ex.message == "'undefined' is not an object (evaluating 'undefined[0]')" is
true | |
| 15 | |
| 16 Testing '++undefined[1]' | |
| 17 PASS ex.message == "'undefined' is not an object (evaluating 'undefined[1]')" is
true | |
| 18 | |
| 19 Testing 'undefined.b' | |
| 20 PASS ex.message == "'undefined' is not an object (evaluating 'undefined.b')" is
true | |
| 21 | |
| 22 Testing 'undefined[0]' | |
| 23 PASS ex.message == "'undefined' is not an object (evaluating 'undefined[0]')" is
true | |
| 24 | |
| 25 Testing 'undefined.b += 1' | |
| 26 PASS ex.message == "'undefined' is not an object (evaluating 'undefined.b')" is
true | |
| 27 | |
| 28 Testing 'undefined[0] += 1' | |
| 29 PASS ex.message == "'undefined' is not an object (evaluating 'undefined[0]')" is
true | |
| 30 | |
| 31 Testing 'undefined()' | |
| 32 PASS ex.message == "'undefined' is not a function (evaluating 'undefined()')" is
true | |
| 33 | |
| 34 Testing 'new undefined()' | |
| 35 PASS ex.message == "'undefined' is not a constructor (evaluating 'new undefined(
)')" is true | |
| 36 | |
| 37 Testing '({}).b()' | |
| 38 PASS ex.message == "'undefined' is not a function (evaluating '({}).b()')" is tr
ue | |
| 39 | |
| 40 Testing 'new {}.b()' | |
| 41 PASS ex.message == "'undefined' is not a constructor (evaluating 'new {}.b()')"
is true | |
| 42 | |
| 43 Testing '1()' | |
| 44 PASS ex.message == "'1' is not a function (evaluating '1()')" is true | |
| 45 | |
| 46 Testing 'new 1()' | |
| 47 PASS ex.message == "'1' is not a constructor (evaluating 'new 1()')" is true | |
| 48 | |
| 49 Testing 'throw { message : 'thrown object' }' | |
| 50 PASS ex.message == "thrown object" is true | |
| 51 | |
| 52 Testing '1 in undefined' | |
| 53 PASS ex.message == "'undefined' is not a valid argument for 'in' (evaluating '1
in undefined')" is true | |
| 54 | |
| 55 Testing '1 instanceof undefined' | |
| 56 PASS ex.message == "'undefined' is not a valid argument for 'instanceof' (evalua
ting '1 instanceof undefined')" is true | |
| 57 | |
| 58 Testing 'for (undefined.b in [1]) {}' | |
| 59 PASS ex.message == "'undefined' is not an object (evaluating 'undefined.b')" is
true | |
| 60 | |
| 61 Testing 'for (undefined[0] in [1]) {}' | |
| 62 PASS ex.message == "'undefined' is not an object (evaluating 'undefined[0]')" is
true | |
| 63 | |
| 64 Testing 'undefined.a = 5' | |
| 65 PASS ex.message == "'undefined' is not an object (evaluating 'undefined.a = 5')"
is true | |
| 66 | |
| 67 Testing 'undefined[0] = 5' | |
| 68 PASS ex.message == "'undefined' is not an object (evaluating 'undefined[0] = 5')
" is true | |
| 69 | |
| 70 Testing '({b:undefined}).b.a = 5' | |
| 71 PASS ex.message == "'undefined' is not an object (evaluating '({b:undefined}).b.
a = 5')" is true | |
| 72 | |
| 73 Testing '({b:undefined}).b[0] = 5' | |
| 74 PASS ex.message == "'undefined' is not an object (evaluating '({b:undefined}).b[
0] = 5')" is true | |
| 75 | |
| 76 Testing 'undefined.a += 5' | |
| 77 PASS ex.message == "'undefined' is not an object (evaluating 'undefined.a')" is
true | |
| 78 | |
| 79 Testing 'undefined[0] += 5' | |
| 80 PASS ex.message == "'undefined' is not an object (evaluating 'undefined[0]')" is
true | |
| 81 | |
| 82 Testing '({b:undefined}).b.a += 5' | |
| 83 PASS ex.message == "'undefined' is not an object (evaluating '({b:undefined}).b.
a')" is true | |
| 84 | |
| 85 Testing '({b:undefined}).b[0] += 5' | |
| 86 PASS ex.message == "'undefined' is not an object (evaluating '({b:undefined}).b[
0]')" is true | |
| 87 PASS successfullyParsed is true | |
| 88 | |
| 89 TEST COMPLETE | |
| 90 | |
| OLD | NEW |