Proposal: Lazy Error.message

Jordan Harband ljharb at gmail.com
Sat May 11 13:45:43 UTC 2019


It can already be a getter if you like, which would allow a function to
compute the value on demand.

On Sat, May 11, 2019 at 6:55 AM _ zaoqi <zaomir at outlook.com> wrote:

> Allow Error.prototype.message to be a Function
>
> It is useful in this case:
>
> https://github.com/browserify/commonjs-assert/pull/47
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190511/f13bae98/attachment.html>


More information about the es-discuss mailing list