diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-11-26 23:26:39 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-27 11:51:28 +0100 |
commit | b32c10a8d36aef52c38ad8b51cef33c100c8df9e (patch) | |
tree | ba8c937b55d09d4b1ab85631161338bd7acfb630 /qmljs_runtime.h | |
parent | 102aff16a896e2e237a00843731e84ef3d824b25 (diff) |
Correctly instantiate variables in the local scope
This fixes cases where eval() would create variables
in the wrong scope.
Change-Id: Ie93ec2d1fb125e588c1b6ffa2ca8ca4b6e3112c9
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'qmljs_runtime.h')
-rw-r--r-- | qmljs_runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qmljs_runtime.h b/qmljs_runtime.h index 1831f68d60..a02713d941 100644 --- a/qmljs_runtime.h +++ b/qmljs_runtime.h @@ -103,6 +103,7 @@ Value __qmljs_builtin_typeof(Value val, ExecutionContext *context); void __qmljs_builtin_throw(Value val, 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); // constructors Value __qmljs_init_closure(IR::Function *clos, ExecutionContext *ctx); |