diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-22 09:24:19 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-23 08:00:59 +0200 |
commit | 1708b36910984b116b12432e7d27f8fbb25fadfa (patch) | |
tree | 903794919f2b14fd66842c72aa5fa756d093a295 /src/qml/compiler/qv4codegen_p.h | |
parent | fac5337abfef36c631fe73152157446aae0ea3ea (diff) |
Allow for function declarations inside conditionals
This is strictly speaking a regression from 5.1/v8, which allows for that
as real world JavaScript appears to require it.
Task-number: QTBUG-33064
Change-Id: Iceaca84373f12fb08459ed007afb25b5a705fa31
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
-rw-r--r-- | src/qml/compiler/qv4codegen_p.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h index 075371b273..2d2ca55f8d 100644 --- a/src/qml/compiler/qv4codegen_p.h +++ b/src/qml/compiler/qv4codegen_p.h @@ -477,12 +477,8 @@ protected: virtual bool visit(AST::FunctionDeclaration *ast); virtual void endVisit(AST::FunctionDeclaration *); - virtual bool visit(AST::FunctionBody *ast); - virtual bool visit(AST::WithStatement *ast); - virtual bool visit(AST::IfStatement *ast); - virtual bool visit(AST::WhileStatement *ast); virtual bool visit(AST::DoWhileStatement *ast); virtual bool visit(AST::ForStatement *ast); virtual bool visit(AST::LocalForStatement *ast); @@ -500,7 +496,6 @@ protected: Environment *_env; QStack<Environment *> _envStack; - bool _inFuncBody; bool _allowFuncDecls; }; |