Erik Arvidsson (2013-11-28T00:53:20.000Z)
On Wed, Nov 27, 2013 at 5:49 PM, Dmitry Soshnikov <
dmitry.soshnikov at gmail.com> wrote:

>
> .toMethod(Array, 'toString'); // to (instance/proto) method
>

That does not seem like the lowest level of primitive since now there is no
way to no pass an ordinary object as the [[HomeObject]]. Now I have to
introduce a temporary object that has a prototype property on it.

This is low level API and I don't think it is worth doing a property get
for the prototype here.


> .toStaticMethod(Array, 'toString'); // constructor's method
>

In this case .toMethod(Array, 'toString') is what you want (given that you
are making a static method for a sub class of Array)

-- 
erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131127/25778627/attachment.html>
domenic at domenicdenicola.com (2013-12-03T03:06:32.622Z)
On Wed, Nov 27, 2013 at 5:49 PM, Dmitry Soshnikov <dmitry.soshnikov at gmail.com> wrote:

> ```js
> .toMethod(Array, 'toString'); // to (instance/proto) method
> ```

That does not seem like the lowest level of primitive since now there is no
way to no pass an ordinary object as the [[HomeObject]]. Now I have to
introduce a temporary object that has a prototype property on it.

This is low level API and I don't think it is worth doing a property get
for the prototype here.


> ```js
> .toStaticMethod(Array, 'toString'); // constructor's method
> ```

In this case `.toMethod(Array, 'toString')` is what you want (given that you
are making a static method for a sub class of Array)