Closed Bug 967226 Opened 11 years ago Closed 10 years ago

console.assert should include a stack trace

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 920116

People

(Reporter: bgrins, Unassigned)

References

Details

According to https://github.com/DeveloperToolsWG/console-object/blob/master/api.md#consoleassertexpression-object: > console.assert(expression, object) > If the specified expression is false, the message is written to the console along with a stack trace. Right now, there is no trace provided alongside the logged object. Here is a test case: http://jsfiddle.net/bgrins/pBc5S/. STR: * Call console.assert(false, "Console assertion is false") Expected: * "Console assertion is false" is printed to the console, along with a stack trace Actual * "Console assertion is false" is printed to the console, but no stack trace is included
Thanks for the report! We have some bugs about adding stack traces to various messages: bug 920116 and bug 814497.
Depends on: 920116
Priority: -- → P3
console.assert has had a stack since bug 920116 landed, I believe.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.