JavascriptExceptionMetadata.h 948 B

12345678910111213141516171819
  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. #include "Types/SimplePropertyDescriptor.h"
  7. #include "Types/SimpleTypeHandler.h"
  8. namespace Js{
  9. class JavascriptExceptionMetadata {
  10. public:
  11. static Var CreateMetadataVar(ScriptContext * scriptContext);
  12. static void PopulateMetadataFromCompileException(Var metadata, Var exception, ScriptContext * scriptContext);
  13. static bool PopulateMetadataFromException(Var metadata, JavascriptExceptionObject * recordedException, ScriptContext * scriptContext);
  14. private:
  15. static SimpleTypeHandler<6> ExceptionMetadataTypeHandler;
  16. };
  17. };