Probably try creating an issue on the issue tracker.

On Thu, Feb 6, 2014 at 12:18 AM, Arnout Kazemier <[email protected]> wrote:

> Running in the exact same issues with my own module that heavily depends
> on this functionality. Where I need to introduce the "global" as global in
> my script.
>
> On Thursday 6 February 2014 at 05:11, Tim Cuthbertson wrote:
>
> Hi all,
>
> The StratifiedJS (http://onilabs.com/stratifiedjs) runtime makes use of
> nodejs' vm module, and things are breaking in node v0.11. I thought with
> 0.12 likely coming soon, I ought to check whether these are user error or
> whether something is broken. I've tried searching for details on the vm
> module changes and haven't come up with much high-level stuff (mainly
> patches and discussion about the internals, which I'm afraid I don't know
> enough about to follow).
>
> Something we are doing which works fine in 0.10 and below is:
>
>     var vm = require('vm');
>     var c = vm.createContext(global);
>     vm.runInContext("console.log('hi')", c, '[sandbox]');
>
> But in v0.11.10, this fails with "TypeError: Cannot call method 'log' of
> undefined". So evidently something has changed in how the context works,
> but I can't figure out what the correct way to do this is (or if it's a
> regression).
>
> We're mostly using the `vm` module to be able to get nice stacktraces
> (with the module name instead of "eval"), and to override a few globals
> (like `require`) in the context of a module. So I'm open to better ways of
> doing this, too :)
>
> Cheers,
>  - Tim.
>
>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" 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.
>
>
>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" 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.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" 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.

Reply via email to