Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / core / v8 / ScriptValue.cpp
index 7167aeb..5b7a362 100644 (file)
@@ -76,7 +76,7 @@ bool ScriptValue::toString(String& result) const
 
 PassRefPtr<JSONValue> ScriptValue::toJSONValue(ScriptState* scriptState) const
 {
-    ASSERT(!scriptState->contextIsEmpty());
+    ASSERT(!scriptState->contextIsValid());
     ScriptState::Scope scope(scriptState);
     return v8ToJSONValue(scriptState->isolate(), v8Value(), JSONValue::maxDepth);
 }