On Wed, Jun 12, 2013 at 1:10 PM, Andreas Rossberg <[email protected]>wrote:
> And what's wrong with replacing this by the following?
>
> {
> let out = ''
> function write(s) { o.out += s; },
> function writeln(s) { o.out += s + '\n'; }
> let obj = { title: 'whatever', otherMetaData: … }
> eval(script);
> }
>
i'm not working in the browser, but in principal... i think this is a
direction i can try. i can simply generate and eval the code - that hadn't
occurred to me. Thanks for the idea! i'm not generally a big fan of
generating script code because at some point the escaping becomes more
trouble than it's worth, but i think for my limited use case this might be
a viable option which fulfills my original desires/requirements.
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
--
--
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/groups/opt_out.