tor-browser

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

inline-preview.js (1627B)


      1 function checkValues() {
      2  const a = "";
      3  const b = false;
      4  const c = undefined;
      5  const d = null;
      6  const e = [];
      7  const f = {};
      8  const reg = /^\p{RGI_Emoji}$/v;
      9  const obj = {
     10    foo: 1,
     11  };
     12 
     13  let bs = [];
     14  for (let i = 0; i <= 100; i++) {
     15    bs.push({ a: 2, b: { c: 3 } });
     16  }
     17  debugger;
     18 }
     19 
     20 function columnWise() {
     21  let a = "a";
     22  let b = "b";
     23  let c = "c";
     24  console.log(c, a, b);
     25  debugger;
     26 }
     27 
     28 function objectProperties() {
     29  const obj = { hello: "world", a: { b: "c" } };
     30  console.log(obj.hello);
     31  console.log(obj.a.b);
     32  debugger;
     33 }
     34 
     35 function classProperties() {
     36  class Foo {
     37    x = 1;
     38    #privateVar = 2;
     39    #privateMethod() {
     40      return this.#privateVar;
     41    }
     42    breakFn() {
     43      let i = this.x * this.#privateVar;
     44      const self = this;
     45      debugger;
     46    }
     47  }
     48  const foo = new Foo();
     49  foo.breakFn();
     50 }
     51 
     52 function btnClick() {
     53  const btn = document.querySelector("button");
     54  debugger;
     55  btn.click();
     56 }
     57 
     58 function onBtnClick(event) {
     59  debugger;
     60 }
     61 
     62 {
     63  const x = 1;
     64  {
     65    const x = 2;
     66    debugger;
     67  }
     68  const dict = {};
     69  const key = "hello";
     70  dict[key] = "world";
     71  debugger;
     72 }
     73 
     74 function protoArg(__proto__) {
     75  debugger;
     76 }
     77 
     78 function protoVar() {
     79  const __proto__ = "lemon";
     80  debugger;
     81 }
     82 
     83 // Test case to help assert that same binding in two different scope
     84 // does not show duplicate inline previews.
     85 // The func declaration `foo` will get hoisted (in non strict mode),
     86 // so it'll be available in both the block scope and the parnet function
     87 // scope.
     88 function innerBlockHoistedFuncDecl() {
     89  {
     90    function foo() {
     91      console.trace();
     92    }
     93    foo();
     94    debugger;
     95  }
     96 }