Engine.Defaults.cs 486 B

123456789101112131415161718
  1. namespace Jint;
  2. public partial class Engine
  3. {
  4. internal const bool FoldConstantsOnPrepareByDefault = true;
  5. internal static readonly ParserOptions BaseParserOptions = ParserOptions.Default with
  6. {
  7. Tolerant = true,
  8. // This should be kept sync with https://github.com/sebastienros/esprima-dotnet/blob/v3.0.4/test/Esprima.Tests/JavaScriptParserTests.cs#L14-L18
  9. #if DEBUG
  10. MaxAssignmentDepth = 200,
  11. #else
  12. MaxAssignmentDepth = 500,
  13. #endif
  14. };
  15. }