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

Won’t fix Issue #11201116

Details

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

Reports
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.

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

Attachments

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”

      Changed Status from “Confirmed” to “Won’t fix”

    • Hi!


      This issue has been resolved as “Won’t Fix” because we have made a decision to scope bug fixing on the current Edge product to critical security and reliability issues, and the minimum necessary to service in-market customers (RS4 and RS5), in order to focus on high quality delivery of the new Edge based on open source.​

      The insider builds of the new Microsoft Edge can be downloaded here: https://www.microsoftedgeinsider.com/en-us/

      Thanks,​
      Zach

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

    Sign in