OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 CheckScopeChain([debug.ScopeType.Catch, | 1042 CheckScopeChain([debug.ScopeType.Catch, |
1043 debug.ScopeType.Local, | 1043 debug.ScopeType.Local, |
1044 debug.ScopeType.Script, | 1044 debug.ScopeType.Script, |
1045 debug.ScopeType.Global], exec_state); | 1045 debug.ScopeType.Global], exec_state); |
1046 CheckScopeContent({e:'Exception'}, 0, exec_state); | 1046 CheckScopeContent({e:'Exception'}, 0, exec_state); |
1047 }; | 1047 }; |
1048 catch_block_7(); | 1048 catch_block_7(); |
1049 EndTest(); | 1049 EndTest(); |
1050 | 1050 |
1051 | 1051 |
| 1052 BeginTest("Classes and methods 1"); |
| 1053 |
| 1054 listener_delegate = function(exec_state) { |
| 1055 "use strict" |
| 1056 CheckScopeChain([debug.ScopeType.Local, |
| 1057 debug.ScopeType.Block, |
| 1058 debug.ScopeType.Script, |
| 1059 debug.ScopeType.Global], exec_state); |
| 1060 CheckScopeContent({C1: class { m() { debugger; }} }, 1, exec_state); |
| 1061 }; |
| 1062 |
| 1063 (function() { |
| 1064 "use strict"; |
| 1065 class C1 { |
| 1066 m() { |
| 1067 debugger; |
| 1068 } |
| 1069 } |
| 1070 new C1().m(); |
| 1071 })(); |
| 1072 |
| 1073 EndTest(); |
| 1074 |
| 1075 |
1052 assertEquals(begin_test_count, break_count, | 1076 assertEquals(begin_test_count, break_count, |
1053 'one or more tests did not enter the debugger'); | 1077 'one or more tests did not enter the debugger'); |
1054 assertEquals(begin_test_count, end_test_count, | 1078 assertEquals(begin_test_count, end_test_count, |
1055 'one or more tests did not have its result checked'); | 1079 'one or more tests did not have its result checked'); |
OLD | NEW |