Log errors from Logpoint as actual errors, not strings

RESOLVED FIXED in Firefox 69

Status

enhancement
P2
normal
RESOLVED FIXED
5 months ago
2 months ago

People

(Reporter: Harald, Assigned: chujunlu)

Tracking

(Blocks 1 bug)

Trunk
Firefox 69
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox69 fixed)

Details

Attachments

(2 attachments)

Posted image image.png

What were you doing?

Add a log point and log a non-existing variable.

What happened?

x is not defined string is being logged.

What should had happened?

ReferenceError: x is not defined should be logged as error.

Anything else we should know?

state in the example screenshot isn't defined because the source is source-mapped and the variable name mangled. The error from the console.log is how it should actually look like

Priority: -- → P2

If logpoint throws, set level to "error".
Add tests to ensure the correct level is set.

Assignee: nobody → chujunlu
Pushed by dwalsh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b275b465d1f1
Log errors from logpoint as actual errors in the console r=davidwalsh,nchevobbe
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69
You need to log in before you can comment on or make changes to this bug.