Steps to replicate the issue (include links if applicable):
- The Scribunto hex library declares 5 global variables:
- hex_tbl on line 39
- hex_str on line 40
- last on line 43
- head on line 62
- v on line 68
What happens?:
Attempting to use either of the library's functions (to_hex and to_dec) after require("strict") has been called results in an "assign to undeclared variable" error being thrown.
What should have happened instead?:
- The variables should be declared using local. This would also marginally increase performance.
- Additionally, it is unnecessary to declare v at all, because it is immediately returned after being declared.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):