| Index: Source/bindings/v8/ScriptValue.cpp
|
| diff --git a/Source/bindings/v8/ScriptValue.cpp b/Source/bindings/v8/ScriptValue.cpp
|
| index bdfbe082258abdd7f5c287e8103bfcddbf034e72..70c0e4189e82f46672b7fb379df18f567f17c77c 100644
|
| --- a/Source/bindings/v8/ScriptValue.cpp
|
| +++ b/Source/bindings/v8/ScriptValue.cpp
|
| @@ -41,29 +41,12 @@
|
| {
|
| }
|
|
|
| -v8::Handle<v8::Value> ScriptValue::v8Value() const
|
| -{
|
| - if (isEmpty())
|
| - return v8::Handle<v8::Value>();
|
| -
|
| - ASSERT(isolate()->InContext());
|
| -
|
| - // This is a check to validate that you don't return a ScriptValue to a world different
|
| - // from the world that created the ScriptValue.
|
| - // Probably this could be:
|
| - // if (&m_scriptState->world() == &DOMWrapperWorld::current(isolate()))
|
| - // return v8::Handle<v8::Value>();
|
| - // instead of triggering RELEASE_ASSERT.
|
| - RELEASE_ASSERT(&m_scriptState->world() == &DOMWrapperWorld::current(isolate()));
|
| - return m_value->newLocal(isolate());
|
| -}
|
| -
|
| bool ScriptValue::toString(String& result) const
|
| {
|
| if (isEmpty())
|
| return false;
|
|
|
| - ScriptState::Scope scope(m_scriptState.get());
|
| + v8::HandleScope handleScope(isolate());
|
| v8::Handle<v8::Value> string = v8Value();
|
| if (string.IsEmpty() || !string->IsString())
|
| return false;
|
|
|