Newlines ignored when displaying JS error messages

Fixed, not yet flighted Issue #7316144

Details

Author
Ashley G.
Created
Apr 23, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
37.14316
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Throw an error in JavaScript code with a message containing newline (\n or \r\n) characters. In the Chrome, Firefox, and IE11 developer tools, these newlines are used when displaying the error message on the console. In the Edge developer tools, newline characters are ignored. A screenshot showing the same error message in IE11 and Edge is included. For screenshots of Firefox and Chrome, please check this PR I created for Aurelia that has a bunch of dev tools screenshots: https://github.com/aurelia/pal/pull/10

Attachments

1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Sarah D.”

    Changed Assigned To from “Sarah D.” to “Curtis M.”

    Changed Assigned To from “Curtis M.” to “James L.”

    Changed Assigned To from “James L.” to “Sarah D.”

    Changed Status to “Fixed”

    Changed Status from “Fixed” to “Fixed, not yet flighted”

    Changed Title from “Newlines ignored when displaying JS error messages” to “Newlines ignored when displaying JS error messages”

    Changed Title from “Newlines ignored when displaying JS error messages” to “Newlines ignored when displaying JS error messages”

  • This was a bug in the error message handling for F12, the console was wrapping the message and removing multiline support when it did it. 
    The reason this worked in IE11 was because a team member added the first part of multiline support in IE11, and the second half (Which allowed for the links to work :) in Edge) The second half regressed the first half and this is fixed now.

    All the best,
    The MS Edge Team

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

Sign in