Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

binding console.log not working anymore in 46.0.1

  • No replies
  • 1 has this problem
  • 7 views
more options

I have a library that shortens the console.log with the following JavaScript code:

   var log = console.log.bind(console);

This has worked well and has given the file and line number in the console up until Firefox 45.0.2 but in going to 46.0.1 on a couple different Windows machines, the file and line number are now showing as <unknown>.

Hopefully this is a glitch on Firefox that can be fixed? Thanks - it is very important to me.

I have a library that shortens the console.log with the following JavaScript code: var log = console.log.bind(console); This has worked well and has given the file and line number in the console up until Firefox 45.0.2 but in going to 46.0.1 on a couple different Windows machines, the file and line number are now showing as <unknown>. Hopefully this is a glitch on Firefox that can be fixed? Thanks - it is very important to me.