aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_engine.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2012-11-28 11:00:23 +0100
committerLars Knoll <lars.knoll@digia.com>2012-11-28 12:31:20 +0100
commit4bd20c2ac36c59eb72acc71bc78ddbc058199666 (patch)
treeecf040f99ed7872ab578c4b3984204350c88ba4e /qmljs_engine.h
parent61460c785907049567120e07dcadd714fff93cdb (diff)
Throw a SyntaxError instead of printing an error message.
Change-Id: I94ef8a4f2bea80bc3689b104e381a9dc134439fa Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'qmljs_engine.h')
-rw-r--r--qmljs_engine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qmljs_engine.h b/qmljs_engine.h
index 8d5662783a..9ed8421d27 100644
--- a/qmljs_engine.h
+++ b/qmljs_engine.h
@@ -175,6 +175,7 @@ struct ExecutionEngine
FunctionObject *newRegExpCtor(ExecutionContext *ctx);
Object *newErrorObject(const Value &value);
+ Object *newSyntaxErrorObject(ExecutionContext *ctx, DiagnosticMessage *message);
Object *newMathObject(ExecutionContext *ctx);
Object *newActivationObject(DeclarativeEnvironment *ctx);