Idea for Strawman: separate the core standard library itself into modules

Jasper St. Pierre jstpierre at mecheye.net
Mon Sep 22 15:17:04 PDT 2014


Aha. I wasn't aware of Object.setPrototypeOf. That sounds like it will
solve my use case. Thanks.

On Mon, Sep 22, 2014 at 4:14 PM, Alex Kocharin <alex at kocharin.ru> wrote:

>
> Please show an example of the code you're using __proto__ in.
>
> I'm sure it can be rewritten with Object.setPrototypeOf.
>
>
> 23.09.2014, 01:46, "Jasper St. Pierre" <jstpierre at mecheye.net>:
>
> I have used __proto__ simply because it allows for a feature nothing else
> has: to change the [[Prototype]] of a callable / constructor.
>
> This isn't the same as "with" or other backward-compatibility hacks. It's
> a feature that I need to fake out some other code that uses "instanceof"
> and also be callable.
>
> If there's a better way to do this, please let me know.
>
> On Mon, Sep 22, 2014 at 3:21 PM, Benjamin Grurnbaum <inglor at gmail.com>
> wrote:
>
> My point was that I don't believe that putting the standard library in
> modules would help with people using the current library. Even in 5 years.
>
> I mentioned __proto__ as an example for something that didn't go away
> although it wasn't supported by a major browser and wasn't specced (to the
> point it got specced). I don't think 'with' is going anywhere soon either.
> The "fresh copy" argument sounds good though.
>
> > On 23 בספט׳ 2014, at 00:07, Brendan Eich <brendan at mozilla.org> wrote:
> >
> > Not deprecated -- any reason you brought it up in the context of 'with'?
> >
> > /be
> >
> > John Barton wrote:
> >> Is __proto__ deprecated by TC39? The spec says otherwise.
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
>
>
> --
>   Jasper
> ,
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>


-- 
  Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140922/59de700f/attachment-0001.html>


More information about the es-discuss mailing list