class V8::Context
def lock_scope_and_enter
def lock_scope_and_enter current = Context.current Context.current = self V8::C::Locker() do V8::C::HandleScope() do begin @native.Enter() yield if block_given? ensure @native.Exit() end end end ensure Context.current = current end