#ifndef AbstractWorker_h
#define AbstractWorker_h
-#if ENABLE(SHARED_WORKERS)
+#if ENABLE(WORKERS)
#include "ActiveDOMObject.h"
#include "AtomicStringHash.h"
// Utility routines to generate appropriate error events for loading and script exceptions.
void dispatchLoadErrorEvent();
- void dispatchScriptErrorEvent(const String& errorMessage, const String& sourceURL, int);
+ bool dispatchScriptErrorEvent(const String& errorMessage, const String& sourceURL, int);
void setOnerror(PassRefPtr<EventListener> eventListener) { m_onErrorListener = eventListener; }
EventListener* onerror() const { return m_onErrorListener.get(); }
} // namespace WebCore
-#endif // ENABLE(SHARED_WORKERS)
+#endif // ENABLE(WORKERS)
#endif // AbstractWorker_h