aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_runtime.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-12-17 15:18:38 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-12-17 20:26:38 +0100
commit4f22fcb2494e1e770edae4d08f394f93ed519740 (patch)
tree93a71571fa0f7f4ae73f94d67de62cc4ccf52df6 /qmljs_runtime.h
parent2d4daa564719d61191aa4907494e8a728fbe335b (diff)
Fix a bug in catch{}finally{} and simplify code
There was a bug in the implementation of unwindException(), that caused failures when called twice from one catch statement. Also refactor and simplify the TryStatement code further by introducing a rethrow builtin. Change-Id: I77bf37f1707042f402488ef2dfaf4e59bf8dc82a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_runtime.h')
-rw-r--r--qmljs_runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qmljs_runtime.h b/qmljs_runtime.h
index aa2bc4e7cb..c072e4ac58 100644
--- a/qmljs_runtime.h
+++ b/qmljs_runtime.h
@@ -100,6 +100,7 @@ Value __qmljs_builtin_typeof_member(Value base, String *name, ExecutionContext *
Value __qmljs_builtin_typeof_element(Value base, Value index, ExecutionContext *context);
void __qmljs_builtin_throw(Value val, ExecutionContext *context);
+void __qmljs_builtin_rethrow(ExecutionContext *context);
void __qmljs_builtin_push_with(Value o, ExecutionContext *ctx);
void __qmljs_builtin_pop_with(ExecutionContext *ctx);
void __qmljs_builtin_declare_var(ExecutionContext *ctx, bool deletable, String *name);