Commit bb696488 authored by marja's avatar marja Committed by Commit bot

Debugger & classes: add debugger tests for classes.

R=dslomov@chromium.org
BUG=

Review URL: https://codereview.chromium.org/977123002

Cr-Commit-Position: refs/heads/master@{#27077}
parent 66ab309e
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment