| Index: third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp
|
| index d305a058806e292b3e20898d0568ede81e29ba98..cce2cc5ab0ce55cc99e38ff33bc0f5f88f82e1c0 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp
|
| @@ -40,7 +40,7 @@ v8::Local<v8::Value> ScriptValue::V8Value() const {
|
| if (IsEmpty())
|
| return v8::Local<v8::Value>();
|
|
|
| - ASSERT(GetIsolate()->InContext());
|
| + DCHECK(GetIsolate()->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.
|
| @@ -48,8 +48,7 @@ v8::Local<v8::Value> ScriptValue::V8Value() const {
|
| // if (&m_scriptState->world() == &DOMWrapperWorld::current(isolate()))
|
| // return v8::Local<v8::Value>();
|
| // instead of triggering RELEASE_ASSERT.
|
| - RELEASE_ASSERT(&script_state_->World() ==
|
| - &DOMWrapperWorld::Current(GetIsolate()));
|
| + CHECK_EQ(&script_state_->World(), &DOMWrapperWorld::Current(GetIsolate()));
|
| return value_->NewLocal(GetIsolate());
|
| }
|
|
|
| @@ -61,7 +60,7 @@ v8::Local<v8::Value> ScriptValue::V8ValueFor(
|
| if (&script_state_->World() == &target_script_state->World())
|
| return value_->NewLocal(isolate);
|
|
|
| - ASSERT(isolate->InContext());
|
| + DCHECK(isolate->InContext());
|
| v8::Local<v8::Value> value = value_->NewLocal(isolate);
|
| RefPtr<SerializedScriptValue> serialized =
|
| SerializedScriptValue::SerializeAndSwallowExceptions(isolate, value);
|
|
|