aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_environment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmljs_environment.cpp')
-rw-r--r--qmljs_environment.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qmljs_environment.cpp b/qmljs_environment.cpp
index 87f8543722..121670c999 100644
--- a/qmljs_environment.cpp
+++ b/qmljs_environment.cpp
@@ -171,7 +171,7 @@ void ExecutionContext::init(ExecutionEngine *eng)
variableEnvironment = new DeclarativeEnvironment(eng);
lexicalEnvironment = variableEnvironment;
thisObject = Value::nullValue();
- res = Value::undefinedValue();
+ eng->exception = Value::undefinedValue();
}
PropertyDescriptor *ExecutionContext::lookupPropertyDescriptor(String *name, PropertyDescriptor *tmp)
@@ -235,7 +235,6 @@ void ExecutionContext::initCallContext(ExecutionContext *parent, const Value tha
lexicalEnvironment = variableEnvironment;
thisObject = that;
- res = Value::undefinedValue();
}
void ExecutionContext::leaveCallContext()