Proposal to add symbol: "hasInstanceStrict"
Aleksander Efremov
mr.efrem at gmail.com
Mon Feb 19 16:50:01 UTC 2018
In my first example you can found what I mean. There not only function.
Just instead of that function can be black box results which we must check
on assignment to const.
19 февр. 2018 г. 20:42 пользователь "T.J. Crowder" <
tj.crowder at farsightsoftware.com> написал:
> On Mon, Feb 19, 2018 at 4:35 PM, Aleksander Efremov <mr.efrem at gmail.com>
> wrote:
> >
> > How do you offer to check a assignment of result of `fetch` to
> > the variable (const) ? For it also exists decorator?
>
> I'm not sure I know what you mean. If you could provide a code example
> of what you're asking about...?
>
> I don't think there is any concept of a decorator on a local
> variable/constant that can intercept all assignments to it, no, if
> that's what you mean. If you literally mean `fetch`, you could
> decorate the `then` callback function, but that wouldn't help with
> `await` syntax (which I'd expect to overtake promise syntax fairly
> quickly).
>
> -- T.J. Crowder
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180219/cbccc753/attachment.html>
More information about the es-discuss
mailing list