forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebuggerScriptWrapper.h
More file actions
20 lines (18 loc) · 909 Bytes
/
DebuggerScriptWrapper.h
File metadata and controls
20 lines (18 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//---------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
//----------------------------------------------------------------------------
#pragma once
class DebuggerScriptWrapper
{
public:
DebuggerScriptWrapper(JsRuntimeHandle debugRuntime);
~DebuggerScriptWrapper(void);
HRESULT InstallHostCallback(LPCWSTR propName, JsNativeFunction function, void *data);
HRESULT CallGlobalFunction(LPCWSTR function, JsValueRef *result, LPCWSTR arg1 = nullptr, LPCWSTR arg2 = nullptr, LPCWSTR arg3 = nullptr);
static JsValueRef CALLBACK EchoCallback(JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
static HRESULT GetExternalData(JsValueRef func, void **data);
private:
HRESULT InstallUtility();
JsRuntimeHandle m_runtime;
JsContextRef m_context;
};