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