Browse Source

Memory limit is now supported on .NET Framework

Sebastien Ros 6 years ago
parent
commit
63052c2f4a
1 changed files with 0 additions and 10 deletions
  1. 0 10
      Jint.Tests/Runtime/EngineTests.cs

+ 0 - 10
Jint.Tests/Runtime/EngineTests.cs

@@ -726,15 +726,6 @@ namespace Jint.Tests.Runtime
             );
         }
 
-#if NET452
-        [Fact]
-        public void ShouldThrowMemoryLimitExceeded()
-        {
-            Assert.Throws<PlatformNotSupportedException>(
-                () => new Engine(cfg => cfg.LimitMemory(2048)).Execute("a=[]; while(true){ a.push(0); }")
-            );
-        }
-#else
         [Fact]
         public void ShouldThrowMemoryLimitExceeded()
         {
@@ -742,7 +733,6 @@ namespace Jint.Tests.Runtime
                 () => new Engine(cfg => cfg.LimitMemory(2048)).Execute("a=[]; while(true){ a.push(0); }")
             );
         }
-#endif
 
         [Fact]
         public void ShouldThrowTimeout()