diff options
Diffstat (limited to 'include/object.h')
-rw-r--r-- | include/object.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/object.h b/include/object.h index 2e6628a..47935d7 100644 --- a/include/object.h +++ b/include/object.h @@ -42,8 +42,10 @@ public: Object(const Value &value) : Value() { // string types are instantiated - if (value.isString()) instantiate(value); - + if (value.isString()) { + instantiate(value); + call("__construct"); + } // otherwise copy the other object else operator=(value); } |