Yaa that is working and i am able to execute simple js code => This
definately implies that i am getting into v8 or node main thread. But i am
not being able to execute node specific code like
var fs = require('fs');
I guess since I am creating a new persistent context for myself, it would
be independent of node's context.
like:
v8::HandleScope handleScope;
v8::Persistent<v8::Context> context = CreateShellContext();
context->Enter();
// unique_ptr makes sure that data would be deleted even if there is an
exception.
std::unique_ptr<char[]> codeData((char*)handle->data);
RunCode(context, (char*)handle->data);
context->Exit();
context.Dispose();
How can i get the context of node or is there some method to execute the
code in node's context.
--
--
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.