OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 function test10(index) { return first((++o[index], typeof x10), 2); } | 118 function test10(index) { return first((++o[index], typeof x10), 2); } |
119 assertEquals('number', test10()); | 119 assertEquals('number', test10()); |
120 delete x10; | 120 delete x10; |
121 assertEquals('undefined', test10()); | 121 assertEquals('undefined', test10()); |
122 | 122 |
123 x11 = 0; | 123 x11 = 0; |
124 function test11(index) { return first((o[index]++, typeof x11), 2); } | 124 function test11(index) { return first((o[index]++, typeof x11), 2); } |
125 assertEquals('number', test11()); | 125 assertEquals('number', test11()); |
126 delete x11; | 126 delete x11; |
127 assertEquals('undefined', test11()); | 127 assertEquals('undefined', test11()); |
OLD | NEW |