diff options
Diffstat (limited to 'Sencha-lang/AST/PostfixExpression.cpp')
-rw-r--r-- | Sencha-lang/AST/PostfixExpression.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Sencha-lang/AST/PostfixExpression.cpp b/Sencha-lang/AST/PostfixExpression.cpp index 7e3c658..0289d80 100644 --- a/Sencha-lang/AST/PostfixExpression.cpp +++ b/Sencha-lang/AST/PostfixExpression.cpp @@ -56,6 +56,11 @@ SenchaObject PostfixExpression::execute() { SenchaArray array(name, context_manager, called_value.text); return array.get(access_index.integer); } + else + { + SenchaArray array(name, context_manager); + return array.get(access_index.integer); + } } } result.type = SenchaObject::invalid; |