When creating the context, you should use this;

Local<Context> context = Context::New(isolate, NULL, global);

/Peter

Den torsdagen den 23:e januari 2014 kl. 08:49:39 UTC+1 skrev Mike Diehl:
>
> Hi all.
>
> I'm new to V8 and am trying to work through the examples.  I got 
> Hello_world.cc working and thought I'd expand by trying to add a javascript 
> function (Print()).  I tried to follow the code in ./samples/*.cc.
>
> I compile it with:
>
> g++ hello_world.cc -lv8 -licuuc -licui18n -lrt   -o hello_world
>
> The, when I run ./hello_world, I get:
>
> <unknown>:0: Uncaught ReferenceError: print is not defined
> Segmentation fault (core dumped)
>
> I've attached the code.  Please tell me what I'm doing wrong so I can 
> continue on....
>
> Mike.
>

-- 
-- 
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.

Reply via email to