summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/PostfixExpression.cpp
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-12 22:16:30 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-12 22:16:30 +0100
commit53f8ba2097355f7f488ed04b1d86d037e47216f2 (patch)
tree533fd39064f4148b61c943fdc25d0338a4d5b5d4 /Sencha-lang/AST/PostfixExpression.cpp
parent3a449cb09b812ef7017f584ff3968c40a4f6a83a (diff)
downloadsencha-lang-imports.tar.gz
sencha-lang-imports.tar.bz2
sencha-lang-imports.tar.xz
sencha-lang-imports.zip
Some new examples. New tests. Small improvements.imports
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;