https://bugs.winehq.org/show_bug.cgi?id=56139
Bug ID: 56139 Summary: vbscript: Dictionary does not allow storing Undefined Product: Wine Version: 8.21 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: francisdb@gmail.com Distribution: ---
Example code below, min the commented KEY1 const
Dim pinEvents Set pinEvents = CreateObject("Scripting.Dictionary") 'Const KEY1 = "one" pinEvents.Add KEY1, "hello" WScript.Echo pinEvents(KEY1) WScript.Echo pinEvents(Undefined)
Prints on windows
[Running] cscript //Nologo "test.vbs" hello hello
[Done] exited with code=0 in 0.057 seconds
On Linux we get no output
wine cscript ./test.vbs
This is because the code ends up in a FIXME section at https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/scrrun/dictionary.c#L...