Yea, that's what I meant (I read the code when it was released and knew it
was something weird like that).

I agree, 'tis a hack...



On Mon, Jan 5, 2009 at 11:48 AM, kangax <kan...@gmail.com> wrote:

>
>
>
> On Jan 5, 12:24 pm, "Ryan Gahl" <ryan.g...@gmail.com> wrote:
> > On Mon, Jan 5, 2009 at 11:23 AM, Ryan Gahl <ryan.g...@gmail.com> wrote:
> > > I personally worry more about relying on non-standard behavior (i.e.
> > >> function decompilation)
> >
> > >  Say what?
> >
> > Oh, do you mean how the $super mechanism enumerates the method names and
> > whatnot?
>
> No, `$super` relies on parsing return value of
> `Function.prototype.toString` (when extacting argument names - and `
> $super` in particular). This is non-standard functionality. Clients
> are free to return any function representation (including omitting
> argument names) when invoking `toString` on a function object. At
> least one browser (Opera mini) does that : )
>
> --
> kangax
> >
>


-- 
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
WebWidgetry.com / MashupStudio.com
Future Home of the World's First Complete Web Platform
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to