ecore_js: Add missing HandleScope to addTimeline

This commit is contained in:
Lauro Moura 2016-08-26 17:18:13 -03:00 committed by Felipe Magno de Almeida
parent 6aa4486209
commit 611498f035
1 changed files with 2 additions and 0 deletions

View File

@ -477,6 +477,7 @@ void register_animator_timeline_add(v8::Isolate *isolate,
v8::Handle<v8::String> name)
{
using v8::Handle;
using v8::HandleScope;
using v8::Local;
using v8::Value;
using v8::Undefined;
@ -498,6 +499,7 @@ void register_animator_timeline_add(v8::Isolate *isolate,
= reinterpret_cast<efl::eina::js::global_ref<Value>*>(data);
auto o = persistent->handle();
auto isolate = v8::Isolate::GetCurrent();
HandleScope handle_scope(isolate);
Handle<Value> args = compatibility_new<Number>(isolate, pos);