diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-12-01 14:05:07 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-12-02 15:50:37 +0100 |
commit | 2104e7fdcb9c16cabc58e93f0cd1d11e36bdca34 (patch) | |
tree | ebd2686e7cf8f0e4b561394f28e0aa4cc5b35eb4 /main.cpp | |
parent | b589811f735ffde5dd1272bd9dd69599de421000 (diff) |
Remove the DeclarativeEnvironment class again
The class is a specification detail that we can implement
in a more performant way. ExecutionContext now contains
everything needed again.
Change-Id: Ideb5f04eeeecaf2b8543676c626e3943e4d6d7a1
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -75,7 +75,7 @@ struct Print: FunctionObject virtual Value call(ExecutionContext *ctx) { - for (unsigned int i = 0; i < ctx->argumentCount(); ++i) { + for (unsigned int i = 0; i < ctx->argumentCount; ++i) { String *s = ctx->argument(i).toString(ctx); if (i) std::cout << ' '; @@ -96,7 +96,7 @@ struct TestHarnessError: FunctionObject { errorOccurred = true; - for (unsigned int i = 0; i < ctx->argumentCount(); ++i) { + for (unsigned int i = 0; i < ctx->argumentCount; ++i) { String *s = ctx->argument(i).toString(ctx); if (i) std::cerr << ' '; @@ -357,7 +357,7 @@ int main(int argc, char *argv[]) QQmlJS::IR::Function *f = QQmlJS::VM::EvalFunction::parseSource(ctx, fn, code, QQmlJS::Codegen::GlobalCode); if (!f) continue; - ctx->lexicalEnvironment->strictMode = f->isStrict; + ctx->strictMode = f->isStrict; if (debugger) debugger->aboutToCall(0, ctx); QQmlJS::VM::Value result = f->code(ctx, f->codeData); |