Skip to content

Instantly share code, notes, and snippets.

@dasniko
Last active May 28, 2018 15:40
Show Gist options
  • Select an option

  • Save dasniko/6494bf2c3e0eb8dc2e8a to your computer and use it in GitHub Desktop.

Select an option

Save dasniko/6494bf2c3e0eb8dc2e8a to your computer and use it in GitHub Desktop.

Revisions

  1. dasniko revised this gist Feb 3, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions nashorn-polyfill.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    var global = this;
    var window = this;
    var process = {env: {}};

    var console = {};
    console.debug = print;
  2. dasniko created this gist Sep 21, 2015.
    6 changes: 6 additions & 0 deletions nashorn-polyfill.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    var global = this;

    var console = {};
    console.debug = print;
    console.warn = print;
    console.log = print;