Talk:Z10944
Appearance
Latest comment: 10 months ago by DVrandecic (WMF) in topic Error
Function of the Week
This Function was featured as the Function of the week in the weekly newsletter on 2024-04-19.
Error
Any input gives me `void` with this error: `Z507K1 not a function`. Racecard (talk) 06:27, 14 December 2023 (UTC)
- @Racecard I disconnected the JavaScript version for now, which doesn't seem to work. The Python version seems fine, so the function itself is fixed for now. But the JavaScript version should work, so this needs a bit more investigation. --Denny (talk) 23:23, 14 December 2023 (UTC)
- @Racecard the issue is that the current version of QuickJS we use does not implement Object.hasOwn. Version 0.24.0 fixes this. We plan to roll out the new version after the holiday break. Then the implementation can be connected again. It previously had worked because we used to have a Node-based evaluator, for whom the implementation worked. Thanks for reporting! --DVrandecic (WMF) (talk) 02:29, 19 December 2023 (UTC)
- I took the freedom to change the type of MORSE_MAP in the implementation from an Object to an actual Map. And that works now.
- I just learned that we don't just depend on QuickJS's release, but also on the respective wasmedge version, so the fix I mentioned might take a bit longer to propagate. But with the change to Map I did above, this wouldn't be urgent. I also connected the JavaScript version again. -- DVrandecic (WMF) (talk) 18:06, 19 December 2023 (UTC)