@@ -54,6 +54,7 @@ class WScriptJsrt
5454
5555 static JsErrorCode FetchImportedModule (_In_ JsModuleRecord referencingModule, _In_ JsValueRef specifier, _Outptr_result_maybenull_ JsModuleRecord* dependentModuleRecord);
5656 static JsErrorCode NotifyModuleReadyCallback (_In_opt_ JsModuleRecord referencingModule, _In_opt_ JsValueRef exceptionVar);
57+ static void CALLBACK PromiseContinuationCallback (JsValueRef task, void *callbackState);
5758
5859 static LPCWSTR ConvertErrorCodeToMessage (JsErrorCode errorCode)
5960 {
@@ -94,25 +95,25 @@ class WScriptJsrt
9495private:
9596 static bool CreateArgumentsObject (JsValueRef *argsObject);
9697 static bool CreateNamedFunction (const char *, JsNativeFunction callback, JsValueRef* functionVar);
97- static JsValueRef __stdcall EchoCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
98- static JsValueRef __stdcall QuitCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
99- static JsValueRef __stdcall LoadScriptFileCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
100- static JsValueRef __stdcall LoadScriptCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
101- static JsValueRef __stdcall LoadModuleCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
102- static JsValueRef __stdcall SetTimeoutCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
103- static JsValueRef __stdcall ClearTimeoutCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
104- static JsValueRef __stdcall AttachCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
105- static JsValueRef __stdcall DetachCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
106- static JsValueRef __stdcall DumpFunctionPositionCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
107- static JsValueRef __stdcall RequestAsyncBreakCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
108-
109- static JsValueRef __stdcall EmptyCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
110- static JsErrorCode __stdcall LoadModuleFromString (LPCSTR fileName, LPCSTR fileContent);
111- static JsErrorCode __stdcall InitializeModuleInfo (JsValueRef specifier, JsModuleRecord moduleRecord);
112-
113- static JsValueRef __stdcall LoadBinaryFileCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
114- static JsValueRef __stdcall LoadTextFileCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
115- static JsValueRef __stdcall FlagCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
98+ static JsValueRef CALLBACK EchoCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
99+ static JsValueRef CALLBACK QuitCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
100+ static JsValueRef CALLBACK LoadScriptFileCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
101+ static JsValueRef CALLBACK LoadScriptCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
102+ static JsValueRef CALLBACK LoadModuleCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
103+ static JsValueRef CALLBACK SetTimeoutCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
104+ static JsValueRef CALLBACK ClearTimeoutCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
105+ static JsValueRef CALLBACK AttachCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
106+ static JsValueRef CALLBACK DetachCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
107+ static JsValueRef CALLBACK DumpFunctionPositionCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
108+ static JsValueRef CALLBACK RequestAsyncBreakCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
109+
110+ static JsValueRef CALLBACK EmptyCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
111+ static JsErrorCode CALLBACK LoadModuleFromString (LPCSTR fileName, LPCSTR fileContent);
112+ static JsErrorCode CALLBACK InitializeModuleInfo (JsValueRef specifier, JsModuleRecord moduleRecord);
113+
114+ static JsValueRef CALLBACK LoadBinaryFileCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
115+ static JsValueRef CALLBACK LoadTextFileCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
116+ static JsValueRef CALLBACK FlagCallback (JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState);
116117
117118 static MessageQueue *messageQueue;
118119 static DWORD_PTR sourceContext;
0 commit comments