summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/port/bindings/v8/WorkerScriptController.cpp12
-rw-r--r--webkit/port/bindings/v8/WorkerScriptController.h3
2 files changed, 15 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/WorkerScriptController.cpp b/webkit/port/bindings/v8/WorkerScriptController.cpp
index 9d73437..d0e03bf 100644
--- a/webkit/port/bindings/v8/WorkerScriptController.cpp
+++ b/webkit/port/bindings/v8/WorkerScriptController.cpp
@@ -73,6 +73,12 @@ ScriptValue WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode)
return ScriptValue();
}
+ScriptValue WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode, ScriptValue* exception)
+{
+ // FIXME(jianli): to be implemented.
+ return evaluate(sourceCode);
+}
+
void WorkerScriptController::forbidExecution()
{
// This function is called from another thread.
@@ -80,6 +86,12 @@ void WorkerScriptController::forbidExecution()
m_executionForbidden = true;
}
+void WorkerScriptController::setException(ScriptValue exception)
+{
+ // FIXME(jianli): to be implemented.
+ notImplemented();
+}
+
} // namespace WebCore
#endif // ENABLE(WORKERS)
diff --git a/webkit/port/bindings/v8/WorkerScriptController.h b/webkit/port/bindings/v8/WorkerScriptController.h
index 73cf799..703afd5 100644
--- a/webkit/port/bindings/v8/WorkerScriptController.h
+++ b/webkit/port/bindings/v8/WorkerScriptController.h
@@ -48,6 +48,9 @@ namespace WebCore {
WorkerContextExecutionProxy* proxy() { return m_proxy.get(); }
ScriptValue evaluate(const ScriptSourceCode&);
+ ScriptValue evaluate(const ScriptSourceCode&, ScriptValue* exception);
+
+ void setException(ScriptValue);
void forbidExecution();