diff options
Diffstat (limited to 'Sencha-lang/Elements/SenchaObject.cpp')
-rw-r--r-- | Sencha-lang/Elements/SenchaObject.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Sencha-lang/Elements/SenchaObject.cpp b/Sencha-lang/Elements/SenchaObject.cpp index 56c6f3a..5a22bb1 100644 --- a/Sencha-lang/Elements/SenchaObject.cpp +++ b/Sencha-lang/Elements/SenchaObject.cpp @@ -33,6 +33,10 @@ void SenchaObject::set_value(std::string text) this->text = text.substr(1, text.size()-2); type = string_literal; } + else { + this->text = text; + type = string_literal; + } } void SenchaObject::set_new_string(std::string text) @@ -291,6 +295,12 @@ SenchaObject SenchaObject::operator==(const SenchaObject& right)const value = true; } break; + case boolean: + if(this->truthy == right.truthy) + { + value = true; + } + break; } } |