aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_engine.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-12-04 10:50:25 -0800
committerSimon Hausmann <simon.hausmann@digia.com>2012-12-04 20:08:43 +0100
commit944af86fca2eac90cd6528d2dfbff5316fa911a9 (patch)
treea531a734ac50dc22b933d739da856d7e6b56fa7b /qmljs_engine.h
parent955f5f03afd9915b7f43ff07ce4b624a86c58a1a (diff)
Throw proper type and reference errors
Change-Id: I898017f3e63ada72fc2e50abfa1880f9fd7ffe37 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_engine.h')
-rw-r--r--qmljs_engine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qmljs_engine.h b/qmljs_engine.h
index d47c2d46b6..2b053fd0f2 100644
--- a/qmljs_engine.h
+++ b/qmljs_engine.h
@@ -186,6 +186,9 @@ struct ExecutionEngine
Object *newErrorObject(const Value &value);
Object *newSyntaxErrorObject(ExecutionContext *ctx, DiagnosticMessage *message);
+ Object *newReferenceErrorObject(ExecutionContext *ctx, const QString &message);
+ Object *newTypeErrorObject(ExecutionContext *ctx, const QString &message);
+
Object *newMathObject(ExecutionContext *ctx);
Object *newActivationObject(ExecutionContext *ctx);