Console time() / timeEnd() / count() label conversion non-compliant

Confirmed Issue #11201116 • Assigned to Leo L.


Dominic F.
Mar 8, 2017
This issue is public.
Found in
  • Microsoft Edge
  • Chrome
  • Firefox
Standard affected
Console Standard

Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Functions console.time() and console.timeEnd() do not throw an error when given a timer label whose type is object and whose toString() method throws an error. A good reproduction of this issue can be found by taking the code from this bin and running it in the console. You’ll see errors thrown by label.toString() are never re-thrown to the user.

More information can be found in this discussion.

try {
    toString() {
      console.log(‘toString being called’);
      throw new Error(‘dom’);
} catch(e) {
  console.log('Inside catch with %o’, e);
console.timeEnd({a: 10})


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Steps to Reproduce

      Changed Status to “Confirmed”

      Changed Assigned To to “Newton J.”

      Changed Assigned To from “Newton J.” to “Jeff F.”

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

      Changed Title from “Console time() / timeEnd() label conversion non-compliant” to “Console time() / timeEnd() / count() label conversion non-compliant”

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

    Sign in