I'm converting my code from a 3-month old v8 to 3.20.3. Looks like a lot of 
things have changed with handlers, and I'd like to make it right.
So I'm not going to define V8_ALLOW_ACCESS_TO_RAW_HANDLE_CONSTRUCTOR 
or V8_USE_UNSAFE_HANDLES.

But now I get a compilation error when trying store a persistent context 
into a, instance attribute:

// .h
Isolate* isolate;
Persistent<Context> context;

// .cpp
isolate = Isolate::New();
Locker l(isolate);
Isolate::Scope isolateScope(isolate);

HandleScope handle_scope;

context = Persistent<Context>(isolate, Context::New(isolate));
        ^--- breaks here

error: 'operator=' is a private member of 'v8::Persistent<v8::Context>'

How can I convert my Local<Context> to a persistent one and then store it 
in my instance attribute?

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