mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
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