2
0

SymbolInstance.cs 567 B

1234567891011121314151617181920212223
  1. using Jint.Native.Object;
  2. using Jint.Runtime;
  3. namespace Jint.Native.Symbol
  4. {
  5. public sealed class SymbolInstance : ObjectInstance, IPrimitiveInstance
  6. {
  7. internal SymbolInstance(
  8. Engine engine,
  9. SymbolPrototype prototype,
  10. JsSymbol symbol) : base(engine)
  11. {
  12. _prototype = prototype;
  13. SymbolData = symbol;
  14. }
  15. Types IPrimitiveInstance.Type => Types.Symbol;
  16. JsValue IPrimitiveInstance.PrimitiveValue => SymbolData;
  17. public JsSymbol SymbolData { get; }
  18. }
  19. }