May 26, 2026
1:11 p.m.
FuncRef_Invoke always ran the referenced function as an external caller, so an error raised through a GetRef reference was reported to the host via IActiveScriptSite::OnScriptError even when the reference was called from within running script. A direct call propagates the error as an HRESULT to the caller's On Error Resume Next instead. Treat the reference as an external caller only when the engine is not already executing script. -- v3: vbscript: Run a script-invoked function reference as an internal call. vbscript/tests: Add tests for error reporting from a GetRef reference. https://gitlab.winehq.org/wine/wine/-/merge_requests/10980