test-eval-in-stackframe.html (1214B)
1 <!DOCTYPE HTML> 2 <html dir="ltr" lang="en"> 3 <head> 4 <meta charset="utf8"> 5 <!-- 6 - Any copyright is dedicated to the Public Domain. 7 - http://creativecommons.org/publicdomain/zero/1.0/ 8 --> 9 <title>Test for bug 783499 - use the debugger API in the web console</title> 10 <script> 11 /* eslint-disable */ 12 var foo = "globalFooBug783499"; 13 var fooObj = { 14 testProp: "testValue", 15 }; 16 17 function firstCall() 18 { 19 var foo = "fooFirstCall"; 20 var foo3 = "foo3FirstCall"; 21 secondCall(); 22 } 23 24 function secondCall() 25 { 26 var foo2 = "foo2SecondCall"; 27 var fooObj = { 28 testProp2: "testValue2", 29 }; 30 var fooObj2 = { 31 testProp22: "testValue22", 32 }; 33 debugger; 34 } 35 36 class Foo { 37 x = 1; 38 #privateProp = "privatePropValue"; 39 static #privateStatic = { first: "a", second: "b" }; 40 #privateMethod() { 41 return this.#privateProp; 42 } 43 breakFn() { 44 let i = this.x * this.#privateProp + Foo.#privateStatic; 45 debugger; 46 } 47 } 48 </script> 49 </head> 50 <body> 51 <p>Hello world!</p> 52 </body> 53 </html>