diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-11-30 09:48:46 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-30 12:30:14 +0100 |
commit | d63043df6fa8e8624b4ab9c7a70f320df8156a4a (patch) | |
tree | 46b6e51027635c08d253f29af128122e00bd8ebc /qmljs_objects.h | |
parent | f26d5c36cff33cc8a968c87a69e9dddbb4278855 (diff) |
Clean up the DeclarativeEnvironment
Add a pointer to the FunctionObject in there, and remove the
duplication of the formal and local variable names.
Change-Id: Id8017b3e167228292b5d351e02b8927f0bfb41eb
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'qmljs_objects.h')
-rw-r--r-- | qmljs_objects.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_objects.h b/qmljs_objects.h index f136304009..a74f6198ec 100644 --- a/qmljs_objects.h +++ b/qmljs_objects.h @@ -500,7 +500,7 @@ struct FunctionObject: Object { bool strictMode; FunctionObject(ExecutionContext *scope) - : scope(scope->lexicalEnvironment) + : scope(scope ? scope->lexicalEnvironment : 0) , name(0) , formalParameterList(0) , formalParameterCount(0) |