JavascriptBigIntObject.h 969 B

1234567891011121314151617181920212223242526
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. namespace Js
  7. {
  8. class JavascriptBigIntObject : public DynamicObject
  9. {
  10. private:
  11. Field(JavascriptBigInt*) value;
  12. DEFINE_VTABLE_CTOR(JavascriptBigIntObject, DynamicObject);
  13. DEFINE_MARSHAL_OBJECT_TO_SCRIPT_CONTEXT(JavascriptBigIntObject);
  14. public:
  15. JavascriptBigIntObject(JavascriptBigInt* value, DynamicType * type);
  16. JavascriptBigInt* GetValue() const;
  17. };
  18. template <> inline bool VarIsImpl<JavascriptBigIntObject>(RecyclableObject* obj)
  19. {
  20. return JavascriptOperators::GetTypeId(obj) == TypeIds_BigIntObject;
  21. }
  22. }