Skip to content

Instantly share code, notes, and snippets.

@anshuraj
Created February 15, 2020 13:41
Show Gist options
  • Select an option

  • Save anshuraj/879c553d88fc79eaf3286dea79f1b009 to your computer and use it in GitHub Desktop.

Select an option

Save anshuraj/879c553d88fc79eaf3286dea79f1b009 to your computer and use it in GitHub Desktop.

Revisions

  1. anshuraj created this gist Feb 15, 2020.
    10 changes: 10 additions & 0 deletions tricky.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    (function() {
    try {
    throw new Error();
    } catch(x) {
    var x = 1, y = 2;
    console.log('x ', x);
    }
    console.log('x ', x);
    console.log('y ', y);
    })();