I want my class to hold a v8::Context and a v8::External as members. Therefore, I thought I had to use persistent handles.
v8::Context
v8::External
class Sc
By default, persistent handles use a non copyable trait. Explicitly passing the copyable trait as template argument makes them work like in prior versions.
Persistent<Value, CopyablePersistentTraits<Value>> persistent(isolate, value);