Fix exception with __using

refs #12408
This commit is contained in:
Gunnar Beutner 2016-08-12 12:05:02 +02:00
parent 9f67b185b8
commit 3980cf04a0
1 changed files with 1 additions and 1 deletions

View File

@ -910,7 +910,7 @@ ExpressionResult UsingExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhin
if (!frame.Imports) if (!frame.Imports)
frame.Imports = new Array(); frame.Imports = new Array();
else else
frame.Imports = static_pointer_cast<Array>(frame.Imports->Clone()); frame.Imports = static_pointer_cast<Array>(frame.Imports->ShallowClone());
frame.Imports->Add(import); frame.Imports->Add(import);