InternalTypes.cs 804 B

12345678910111213141516171819202122232425262728293031323334353637
  1. namespace Jint.Runtime;
  2. [Flags]
  3. internal enum InternalTypes
  4. {
  5. // should not be used, used for empty match
  6. Empty = 0,
  7. Undefined = 1,
  8. Null = 2,
  9. // primitive types range start
  10. Boolean = 4,
  11. String = 8,
  12. Number = 16,
  13. Integer = 32,
  14. Symbol = 64,
  15. BigInt = 128,
  16. // primitive types range end
  17. Object = 256,
  18. PrivateName = 512,
  19. // internal usage
  20. ObjectEnvironmentRecord = 1024,
  21. RequiresCloning = 2048,
  22. Module = 4096,
  23. // the object doesn't override important GetOwnProperty etc which change behavior
  24. PlainObject = 8192,
  25. // our native array
  26. Array = 16384,
  27. Primitive = Boolean | String | Number | Integer | BigInt | Symbol,
  28. InternalFlags = ObjectEnvironmentRecord | RequiresCloning | PlainObject | Array | Module
  29. }