summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/PostfixExpression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Sencha-lang/AST/PostfixExpression.cpp')
-rw-r--r--Sencha-lang/AST/PostfixExpression.cpp5
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;