aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/evaluatorscriptclass.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-03-21 12:24:22 +0100
committerChristian Kandeler <christian.kandeler@digia.com>2014-03-25 16:12:42 +0100
commitc0e86b13594631188d457e0a360799e7de73777d (patch)
tree07a1d0fde7f4287ba5c27bd6177798b1ffd5147c /src/lib/corelib/language/evaluatorscriptclass.cpp
parent9ec57f633d8a8dabf75539d07c82617c28943162 (diff)
turn JSSourceValue::m_sourceCode into a QStringRef
Change-Id: Ie79c4dc2cc998558f826133a2a8bf08a73190f2d Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/corelib/language/evaluatorscriptclass.cpp')
-rw-r--r--src/lib/corelib/language/evaluatorscriptclass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/corelib/language/evaluatorscriptclass.cpp b/src/lib/corelib/language/evaluatorscriptclass.cpp
index 74677ff56..4b3f11f00 100644
--- a/src/lib/corelib/language/evaluatorscriptclass.cpp
+++ b/src/lib/corelib/language/evaluatorscriptclass.cpp
@@ -150,6 +150,7 @@ private:
// Clone value but without alternatives.
JSSourceValuePtr outerValue = JSSourceValue::create();
outerValue->setFile(value->file());
+ outerValue->setHasFunctionForm(value->hasFunctionForm());
outerValue->setSourceCode(value->sourceCode());
outerValue->setBaseValue(value->baseValue());
outerValue->setLocation(value->location());
@@ -185,7 +186,7 @@ private:
}
pushScope(extraScope);
const CodeLocation valueLocation = value->location();
- *result = engine->evaluate(value->sourceCode(), valueLocation.fileName(),
+ *result = engine->evaluate(value->sourceCodeForEvaluation(), valueLocation.fileName(),
valueLocation.line());
popScopes();
}