Skip to content

Commit a5fe637

Browse files
committed
v2 к EvilBeaver#1295: работа параметра runtime.default
1 parent 7a3239d commit a5fe637

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/ScriptEngine/Compiler/CompilerBackendSelector.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ namespace ScriptEngine.Compiler
1717
public class CompilerBackendSelector : BslSyntaxWalker
1818
{
1919
private bool _isNative;
20-
private bool _isNativeDefault;
2120

2221
public CompilerBackendSelector(OneScriptCoreOptions options)
2322
{
24-
_isNativeDefault = options.UseNativeAsDefaultRuntime;
23+
_isNative = options.UseNativeAsDefaultRuntime;
2524
}
2625

2726
public Func<ICompilerBackend> StackBackendInitializer { get; set; }
@@ -51,10 +50,6 @@ protected override void VisitModuleAnnotation(AnnotationNode node)
5150
{
5251
_isNative = false;
5352
}
54-
else
55-
{
56-
_isNative = _isNativeDefault;
57-
}
5853
}
5954

6055
protected override void VisitModule(ModuleNode node)

0 commit comments

Comments
 (0)