Engine.Obsolete.cs 1.7 KB

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