tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test-autocomplete-in-stackframe.html (1349B)


      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 842682 - use the debugger API for web console autocomplete</title>
     10    <script>
     11      /* eslint-disable */
     12      var foo1 = "globalFoo";
     13      var shadowed = Object.assign(Object.create(null), {
     14        foo: true
     15      });
     16 
     17      var foo1Obj = Object.assign(Object.create(null), {
     18        prop1: "111",
     19        prop2: {
     20          prop21: "212121"
     21        },
     22        method() {
     23          debugger;
     24        }
     25      });
     26 
     27      function firstCall() {
     28        var foo2 = "fooFirstCall";
     29 
     30        var foo2Obj = Object.assign(Object.create(null), {
     31          prop1: Object.assign(Object.create(null), {
     32            prop11: "111111"
     33          })
     34        });
     35 
     36        secondCall();
     37      }
     38 
     39      function secondCall() {
     40        var foo3 = "fooSecondCall";
     41        var shadowed = Object.assign(Object.create(null), {
     42          bar: true
     43        });
     44 
     45 
     46        var foo3Obj = Object.assign(Object.create(null), {
     47          prop1: Object.assign(Object.create(null), {
     48            prop11: "313131"
     49          })
     50        });
     51 
     52        foo1Obj.method();
     53      }
     54    </script>
     55  </head>
     56  <body>
     57    <p>Hello world!</p>
     58  </body>
     59 </html>