console functions don't inherit from Function.prototype

Fixed Issue #14516873

Details

Author
Todd K.
Created
Nov 3, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Open developer tools
  2. Type: console.log.apply(console, ['this', 'should', 'work'])
  3. Observe that you get an error
  4. (Observed in https://github.com/choojs/nanologger/pull/8)

The only work around is this monstrosity:

Function.prototype.apply.apply(console.log, [console, args])

Attachments

0 attachments

    Comments and activity

    • I’m not able to repro in the Fall Creators Update using either Edge or IE: https://bl.ocks.org/nolanlawson/0b25b49b66d2320260c1b5f9ce012bb6

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    • Hi Todd,

      Can you verify if this is still an issue, I.e. we believe this is working in the latest public release.

      Appreciate the help,

      Steve

    • Microsoft Edge Team

      Changed Status to “Fixed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in