Skip to content

Commit 638d83c

Browse files
committed
Ошибка теста eval
1 parent caf7f7e commit 638d83c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OneScript.StandardLibrary/DynamicLoadingFunctions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ public DynamicLoadingFunctions(ScriptingEngine engine)
4141
/// <example>ПодключитьСценарий("C:\file.os", "МойОбъект");
4242
/// А = Новый МойОбъект();</example>
4343
[ContextMethod("ПодключитьСценарий", "AttachScript")]
44-
public void AttachScript(string path, string typeName)
44+
public void AttachScript(IBslProcess process, string path, string typeName)
4545
{
4646
var compiler = _engine.GetCompilerService();
4747
try
4848
{
49-
_engine.AttachedScriptsFactory.AttachByPath(compiler, path, typeName, _engine.NewProcess());
49+
_engine.AttachedScriptsFactory.AttachByPath(compiler, path, typeName, process);
5050
}
5151
catch (SyntaxErrorException e)
5252
{

0 commit comments

Comments
 (0)