window.console differs a lot depending on DevTools tools being open or not

Confirmed Issue #10868613 • Assigned to Jeff F.

Details

Created
Feb 8, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Found in build #
14.14393
Reports
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

window.console differs a lot depending on DevTools tools being open or not. This should not happen; there should be no observable differences to web-facing content.

Quick testing led me to two differences (I’d expect more):

  1. console.log.toString() is function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] } when DevTools are open and function log() { [native code] } wen they’re closed. The same applies to all the other methods.

  2. console is a namespace object only if DevTools is open. That means the following:
    var log = console.log;
    log(‘message’);
    works only if DevTools are open. Making console a namespace object is tracked in https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/9392959/ so maybe this one will be resolved once the other one is but I’d pay attention if everything matches (the proto value, property descriptors etc.).

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Leo L.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Leo L.” to “Jeff F.”

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

    Sign in