On Wed, Jul 16, 2014 at 12:29 PM, Oliver Bock <[email protected]> wrote:
> Hi Jakob,
>
> This is a good idea, but unfortunately my existing code relies on the
> eval-like nature of fragments, in that they "return" whatever the last line
> in the script evaluates to. [...]
>
Easily fixable via the highly readable one-liner: :-D :-P * * *
function myEval(body){"use strict"; return eval("(function(){return
eval(\""+body+"\");})()")}
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.