We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect compiling the function with return LuaMultiReturn. Code breaks.
LuaMultiReturn
mtasa.addCommandHandler('anime', () => { mtasa.outputChatBox('Nya!') const [width, height] = mtasa.guiGetScreenSize() //code breaks executing mtasa.outputChatBox(`${width} - ${height}`) })
The code doesn't crash. And at compile time, unpack is not added
unpack
win11
{ npm: '8.12.1', node: '16.15.1', v8: '9.4.146.24-node.21', uv: '1.43.0', zlib: '1.2.11', brotli: '1.0.9', ares: '1.18.1', modules: '93', nghttp2: '1.47.0', napi: '8', llhttp: '6.0.4', openssl: '1.1.1o+quic', cldr: '40.0', icu: '70.1', tz: '2021a3', unicode: '14.0', ngtcp2: '0.1.0-DEV', nghttp3: '0.1.0-DEV' }
test@ C:\MTA Server\server\mods\deathmatch\resources\[ZombiePlague] ├── @typescript-eslint/[email protected] ├── @typescript-eslint/[email protected] ├── @typescript-to-lua/[email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]
Without unpack code continue executing without problems
The text was updated successfully, but these errors were encountered:
fixed with upgarde to latest TSTL #383
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Incorrect compiling the function with return
LuaMultiReturn
. Code breaks.To Reproduce
Expected behavior
The code doesn't crash. And at compile time,
unpack
is not addedScreenshots
Desktop information
win11
NPM Version
NPM Package versions
Additional context
Without
unpack
code continue executing without problemsThe text was updated successfully, but these errors were encountered: