Index: test/mjsunit/debug-scopes.js |
diff --git a/test/mjsunit/debug-scopes.js b/test/mjsunit/debug-scopes.js |
index 7c08120e2adf82e753117726d253263a9d170966..78a70af26a0b5ec46431e51635840d766f9a51bb 100644 |
--- a/test/mjsunit/debug-scopes.js |
+++ b/test/mjsunit/debug-scopes.js |
@@ -1049,6 +1049,30 @@ catch_block_7(); |
EndTest(); |
+BeginTest("Classes and methods 1"); |
+ |
+listener_delegate = function(exec_state) { |
+ "use strict" |
+ CheckScopeChain([debug.ScopeType.Local, |
+ debug.ScopeType.Block, |
+ debug.ScopeType.Script, |
+ debug.ScopeType.Global], exec_state); |
+ CheckScopeContent({C1: class { m() { debugger; }} }, 1, exec_state); |
+}; |
+ |
+(function() { |
+ "use strict"; |
+ class C1 { |
+ m() { |
+ debugger; |
+ } |
+ } |
+ new C1().m(); |
+})(); |
+ |
+EndTest(); |
+ |
+ |
assertEquals(begin_test_count, break_count, |
'one or more tests did not enter the debugger'); |
assertEquals(begin_test_count, end_test_count, |