Closed Bug 1815853 Opened 2 years ago Closed 2 years ago

Make sure `JSON.stringify()` won't break in `testResult()`

Categories

(Testing :: Mochitest, task)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: willdurand, Assigned: willdurand)

References

Details

Attachments

(1 file)

In Bug 1815682, we added JSON.stringify() to pretty-print object errors but this function may throw so let's add a try/catch block to prevent that from happening.

Assignee: nobody → wdurand
Status: NEW → ASSIGNED
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/00457e81fec0 Make sure `JSON.stringify()` won't break in `testResult()`. r=gbrown
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: