Yeah people were talking about this on the Narwhal mailing list a while
back, but its just not feasible at the end of the day because its not cross
browser/implementation compatible. Its not just Rhino, Firefox doesn't keep
the comments either (which makes sense, given they're both from Mozilla).

_Nick_



On Thu, Dec 16, 2010 at 2:56 PM, Jacob Beard <[email protected]> wrote:

> On Thu, Dec 16, 2010 at 11:47 PM, Derek Gathright <[email protected]>
> wrote:
> > Here's a hacky way to do it.  Found in my cornify Node.js module. :)
> > https://github.com/drgath/cornify/blob/master/lib/cornify.js
>
> Seems like a very nice hack, but unfortunately, it doesn't work in
> Rhino, which doesn't print the comments.
>
> x = (function () {/*
>            \\
>            \\
>             \\\\
>              \\\\
>               >\\/7
>           _.-(6'  \\
>          (=___._/` \\
>               )  \\ |
>              /   / |
>             /    > /
>            j    < _\\
>        _.-' :      ``.
>        \\ r=._\\        `.
>       <`\\\\_  \\         .`-.
>        \\ r-7  `-. ._  ' .  `\\
>         \\`,      `-.`7  7)   )
>          \\/         \\|  \\'/
>                     ||    .'
>                     \\\\  (
>                     >\\  >
>                  ,.-' >.'
>                 <.'_.''
>                   <'
>     */})
>
> print(x)
>
> Yields:
>
> function () {
> }
>
>
> Jake
>
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here:
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]<jsmentors%[email protected]>
>

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to