sourceURL of eval'd script snippets will not be included in error.stack

Confirmed Issue #5143602 • Assigned to Bo C.


Oct 23, 2015
This issue is public.
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:

Navigate to the test page at

This page generates tests for this issue.
The browser window will display the sourceURL and sourceText to be used in the tests.
Results of the tests will go to the browser console.

There are four tests. All of them call a variation of
eval('(function() { … })');
and then call the resultant function.

All four of the test script snippets are available in the debugger window with the desired sourceURL.

All four of the tests generate an error.

The first two tests do not catch the error and it is logged to the console with the desired sourceURL.

The last two tests do catch the error, log the error.stack and then rethrow the error.
The error.stack does not have the desired sourceURL.
The logged error does not have the desired sourceURL.

Expected Results:

  1. The sourceURL of eval’d script snippets should be entered into the error.stack.
  2. When an error is thrown (and not caught) then it should log the error.stack to the console automatically. Chrome’s implementation seems best - the error.stack is initially collapsed but can be expanded by clicking on a toggle next to the error message.

Actual Results:

Dev Channel specific:



0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To to “Travis L.”

      Changed Assigned To from “Travis L.” to “Jeff W.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Jeff W.” to “Eugene V.”

      Changed Assigned To from “Eugene V.” to “Bo C.”

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

    Sign in