direct vs call

Edit on GitHub

Setup

Tests

  • direct

    console.error("Danger!", "Something bad happened!", "Time to debug!")
  • call

    console.error.call(this, "Danger!", "Something bad happened!", "Time to debug!")