Files
Kmake/deps/v8/test/inspector/debugger/set-breakpoint-in-class-initializer-expected.txt
2026-05-26 23:36:42 -07:00

67 lines
1.0 KiB
Plaintext

Checks if we can set a breakpoint on a one-line inline functions.
Setting breakpoint on `class X`
function foo() {}
var bar = "bar";
class X {
constructor() {
|_|this.x = 1;
}
[bar] = 2;
baz = foo();
}
new X();
Setting breakpoint on constructor, should resolve to same location
function foo() {}
var bar = "bar";
class X {
constructor() {
|_|this.x = 1;
}
[bar] = 2;
baz = foo();
}
new X();
Setting breakpoint on computed properties in class
function foo() {}
var bar = "bar";
class X {
constructor() {
this.x = 1;
}
[|_|bar] = 2;
baz = foo();
}
new X();
Setting breakpoint on initializer function
function foo() {}
var bar = "bar";
class X {
constructor() {
this.x = 1;
}
[bar] = 2;
baz = |_|foo();
}
new X();
Paused on location:
(anonymous) (testInitializer.js:8:3)
Paused on location:
<instance_members_initializer> (testInitializer.js:9:8)
X (testInitializer.js:5:13)
(anonymous) (testInitializer.js:11:0)
Paused on location:
X (testInitializer.js:6:4)
(anonymous) (testInitializer.js:11:0)