summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/Completion.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/Completion.h')
-rw-r--r--Source/JavaScriptCore/runtime/Completion.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/Source/JavaScriptCore/runtime/Completion.h b/Source/JavaScriptCore/runtime/Completion.h
index 702ed9fab..78f8ac795 100644
--- a/Source/JavaScriptCore/runtime/Completion.h
+++ b/Source/JavaScriptCore/runtime/Completion.h
@@ -24,26 +24,18 @@
#define Completion_h
#include "JSCJSValue.h"
-#include <wtf/NakedPtr.h>
namespace JSC {
+
+ struct ParserError;
+ class ExecState;
+ class JSScope;
+ class SourceCode;
+ class VM;
-class Exception;
-class ExecState;
-class JSScope;
-class ParserError;
-class SourceCode;
-class VM;
-
-JS_EXPORT_PRIVATE bool checkSyntax(VM&, const SourceCode&, ParserError&);
-JS_EXPORT_PRIVATE bool checkSyntax(ExecState*, const SourceCode&, JSValue* exception = 0);
-JS_EXPORT_PRIVATE bool checkModuleSyntax(VM&, const SourceCode&, ParserError&);
-JS_EXPORT_PRIVATE JSValue evaluate(ExecState*, const SourceCode&, JSValue thisValue, NakedPtr<Exception>& returnedException);
-inline JSValue evaluate(ExecState* exec, const SourceCode& sourceCode, JSValue thisValue = JSValue())
-{
- NakedPtr<Exception> unused;
- return evaluate(exec, sourceCode, thisValue, unused);
-}
+ JS_EXPORT_PRIVATE bool checkSyntax(VM&, const SourceCode&, ParserError&);
+ JS_EXPORT_PRIVATE bool checkSyntax(ExecState*, const SourceCode&, JSValue* exception = 0);
+ JS_EXPORT_PRIVATE JSValue evaluate(ExecState*, const SourceCode&, JSValue thisValue = JSValue(), JSValue* exception = 0);
} // namespace JSC