Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add memory usage limit option to Engine (#482)
Fixes #480
- Loading branch information
1 parent
e12d443
commit f90d6c1
Showing
5 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
<ItemGroup> | ||
<PackageReference Include="Esprima" Version="1.0.0-beta-1026" /> | ||
</ItemGroup> | ||
</Project> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
|
||
namespace Jint.Runtime | ||
{ | ||
public class MemoryLimitExceededException : Exception | ||
{ | ||
public MemoryLimitExceededException() : base() | ||
{ | ||
} | ||
|
||
public MemoryLimitExceededException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
} |