diff --git a/lib/base/array-script.cpp b/lib/base/array-script.cpp index 006adf0b4..751c552d3 100644 --- a/lib/base/array-script.cpp +++ b/lib/base/array-script.cpp @@ -66,11 +66,11 @@ static void ArrayClear(void) self->Clear(); } -static void ArrayClone(void) +static Array::Ptr ArrayClone(void) { ScriptFrame *vframe = ScriptFrame::GetCurrentFrame(); Array::Ptr self = static_cast(vframe->Self); - self->ShallowClone(); + return self->ShallowClone(); } Object::Ptr Array::GetPrototype(void) diff --git a/lib/base/dictionary-script.cpp b/lib/base/dictionary-script.cpp index 61d43e5e9..c46cdc990 100644 --- a/lib/base/dictionary-script.cpp +++ b/lib/base/dictionary-script.cpp @@ -52,11 +52,11 @@ static bool DictionaryContains(const String& key) return self->Contains(key); } -static void DictionaryClone(void) +static Dictionary::Ptr DictionaryClone(void) { ScriptFrame *vframe = ScriptFrame::GetCurrentFrame(); Dictionary::Ptr self = static_cast(vframe->Self); - self->ShallowClone(); + return self->ShallowClone(); } Object::Ptr Dictionary::GetPrototype(void)