Unreviewed, rolling out r112201.
[WebKit-https.git] / Source / WebCore / loader / cache / CachedScript.cpp
index 93dc6701f5af8497255a9e86e94e93ac683dafe8..8c83bca88265124e28ea0a884c8ff890b45ae700 100644 (file)
@@ -104,6 +104,14 @@ void CachedScript::data(PassRefPtr<SharedBuffer> data, bool allDataReceived)
     checkNotify();
 }
 
+void CachedScript::error(CachedResource::Status status)
+{
+    setStatus(status);
+    ASSERT(errorOccurred());
+    setLoading(false);
+    checkNotify();
+}
+
 void CachedScript::destroyDecodedData()
 {
     m_script = String();