Engine.Obsolete.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using Jint.Native;
  3. using Jint.Native.Array;
  4. using Jint.Native.Date;
  5. using Jint.Native.Error;
  6. using Jint.Native.Function;
  7. using Jint.Native.Json;
  8. using Jint.Native.Object;
  9. using Jint.Native.String;
  10. namespace Jint
  11. {
  12. public partial class Engine
  13. {
  14. /// <summary>
  15. /// Gets the last evaluated statement completion value
  16. /// </summary>
  17. [Obsolete("Prefer calling Evaluate which returns last completion value. Execute is for initialization and Evaluate returns final result.")]
  18. public JsValue GetCompletionValue()
  19. {
  20. return _completionValue;
  21. }
  22. [Obsolete("Use active realms Intrinsics to access well-known object")]
  23. public ArrayConstructor Array => Realm.Intrinsics.Array;
  24. [Obsolete("Use active realms Intrinsics to access well-known object")]
  25. public DateConstructor Date => Realm.Intrinsics.Date;
  26. [Obsolete("Use active realms Intrinsics to access well-known object")]
  27. public EvalFunctionInstance Eval => Realm.Intrinsics.Eval;
  28. [Obsolete("Use active realms Intrinsics to access well-known object")]
  29. public ErrorConstructor Error => Realm.Intrinsics.Error;
  30. [Obsolete("Use active realms Intrinsics to access well-known object")]
  31. public FunctionConstructor Function => Realm.Intrinsics.Function;
  32. [Obsolete("Use active realms Intrinsics to access well-known object")]
  33. public JsonInstance Json => Realm.Intrinsics.Json;
  34. [Obsolete("Use active realms Intrinsics to access well-known object")]
  35. public ObjectConstructor Object => Realm.Intrinsics.Object;
  36. [Obsolete("Use active realms Intrinsics to access well-known object")]
  37. public StringConstructor String => Realm.Intrinsics.String;
  38. }
  39. }