|
@@ -133,6 +133,9 @@ namespace Atomic
|
|
|
vm->SetLastModuleSearchFile(jsfile->GetFullPath());
|
|
vm->SetLastModuleSearchFile(jsfile->GetFullPath());
|
|
|
String source;
|
|
String source;
|
|
|
jsfile->ReadText(source);
|
|
jsfile->ReadText(source);
|
|
|
|
|
+ //not sure if it's good solution
|
|
|
|
|
+ source.At(source.Length() - 1) = ' ';
|
|
|
|
|
+ source.Append("\n");
|
|
|
duk_push_string(ctx, source.CString());
|
|
duk_push_string(ctx, source.CString());
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|