| Index: Source/bindings/v8/ScriptPromiseTest.cpp
|
| diff --git a/Source/bindings/v8/ScriptPromiseTest.cpp b/Source/bindings/v8/ScriptPromiseTest.cpp
|
| index a33cd0eafe9c0dbb1c16bdc7807fe2e6cdabd6b1..2eb97f3695a4bdd0e3f7b9b140d7017c99dce011 100644
|
| --- a/Source/bindings/v8/ScriptPromiseTest.cpp
|
| +++ b/Source/bindings/v8/ScriptPromiseTest.cpp
|
| @@ -47,17 +47,21 @@
|
| public:
|
| ScriptPromiseTest()
|
| : m_isolate(v8::Isolate::GetCurrent())
|
| + , m_handleScope(m_isolate)
|
| + , m_context(m_isolate, v8::Context::New(m_isolate))
|
| + , m_contextScope(m_context.newLocal(m_isolate))
|
| {
|
| }
|
|
|
| void SetUp()
|
| {
|
| - m_scope = V8BindingTestScope::create(m_isolate);
|
| + // FIXME: Create a new world and pass it to V8PerContextData.
|
| + m_perContextData = V8PerContextData::create(m_context.newLocal(m_isolate), 0);
|
| }
|
|
|
| void TearDown()
|
| {
|
| - m_scope.clear();
|
| + m_perContextData.clear();
|
| }
|
|
|
| V8PromiseCustom::PromiseState state(ScriptPromise promise)
|
| @@ -67,9 +71,10 @@
|
|
|
| protected:
|
| v8::Isolate* m_isolate;
|
| -
|
| -private:
|
| - OwnPtr<V8BindingTestScope> m_scope;
|
| + v8::HandleScope m_handleScope;
|
| + ScopedPersistent<v8::Context> m_context;
|
| + v8::Context::Scope m_contextScope;
|
| + OwnPtr<V8PerContextData> m_perContextData;
|
| };
|
|
|
| TEST_F(ScriptPromiseTest, castPromise)
|
|
|