Reviewers: Dmitry Lomov (chromium),

Message:
dslomov@, even if it turned out that CLASS_SCOPE is not the way to go, I could
still land this test (which works for master too), ptal.

Description:
Debugger & classes: add debugger tests for classes.

[email protected]
BUG=

Please review this at https://codereview.chromium.org/977123002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+24, -0 lines):
  M test/mjsunit/debug-scopes.js


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,


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to