Files
firefox/devtools/client/shared/components
Nicolas Chevobbe 7076d3a083 Bug 1559717 - Fix displaying getter value for getter returning falsy values. r=davidwalsh.
We were displaying result.value.throw if result.value.return
was falsy. But it can happen that a getter does return a
falsy value, and we want to display it.
So now we turn the expression the other way around, we first
check result.value.throw, and then default to result.value.return.
A mochitest is added to ensure we hav expected value for different
getters returning falsy values.

Differential Revision: https://phabricator.services.mozilla.com/D39136
2019-07-25 13:55:14 +00:00
..