Assign the return value of CreateV8Context() to a Local<Context> so you don't have to materialize it again from context_. Also, this function probably needs a HandleScope.