Title: Allow stacktraces in Lua 5.1 and LuaJIT and fix level in lualib by emmachase · Pull Request #1610 · TypeScriptToLua/TypeScriptToLua · GitHub
Open Graph Title: Allow stacktraces in Lua 5.1 and LuaJIT and fix level in lualib by emmachase · Pull Request #1610 · TypeScriptToLua/TypeScriptToLua
X Title: Allow stacktraces in Lua 5.1 and LuaJIT and fix level in lualib by emmachase · Pull Request #1610 · TypeScriptToLua/TypeScriptToLua
Description: Lua 5.1 and LuaJIT have a bug where it's not possible to specify the level without a message. Previously the stacktrace was just ignored in TSTL for these versions; but we can workaround this bug by just specifying an empty message and trimming the newline with string.sub. Also: Fix the constructor passed when getting the stacktrace, as constructor.new doesn't seem to exist. I suspect that .new used to be a thing but was never updated when this was changed. Is there any circumstance where finding the __TS__New would result in the wrong level? Since __TS__New is not specifically for Error. I also noticed a typo and what looks like a bug in the testEachVersion util where if it found any target that was disabled, it would completely exit even if other versions were specified.
Open Graph Description: Lua 5.1 and LuaJIT have a bug where it's not possible to specify the level without a message. Previously the stacktrace was just ignored in TSTL for these versions; but we can workaround this b...
X Description: Lua 5.1 and LuaJIT have a bug where it's not possible to specify the level without a message. Previously the stacktrace was just ignored in TSTL for these versions; but we can workaround th...
Opengraph URL: https://github.com/TypeScriptToLua/TypeScriptToLua/pull/1610
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cab6b7c8-ba68-d3c3-b544-397d3c8eb3dd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B134:17C51:2DA6FD6:3ED38DF:6972AB82 |
| html-safe-nonce | 1b102312b42317d3628af42bfaa6c37442f9763bbc5f61904d06812d62ad5ed4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTM0OjE3QzUxOjJEQTZGRDY6M0VEMzhERjo2OTcyQUI4MiIsInZpc2l0b3JfaWQiOiIzODQwODE5MjE2ODI2Njc0MDUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 639d579d181a9a92da59649e64b72a9582aef92ad3887d164c66208a9a81c376 |
| hovercard-subject-tag | pull_request:2272990350 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/TypeScriptToLua/TypeScriptToLua/pull/1610/files |
| twitter:image | https://avatars.githubusercontent.com/u/65421017?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/65421017?s=400&v=4 |
| og:image:alt | Lua 5.1 and LuaJIT have a bug where it's not possible to specify the level without a message. Previously the stacktrace was just ignored in TSTL for these versions; but we can workaround this b... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae357919e9cc5fb635a01c9a2cc530478d3ac85f55090215eb70e1beca3385ac |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/TypeScriptToLua/TypeScriptToLua git https://github.com/TypeScriptToLua/TypeScriptToLua.git |
| octolytics-dimension-user_id | 44121206 |
| octolytics-dimension-user_login | TypeScriptToLua |
| octolytics-dimension-repository_id | 115876595 |
| octolytics-dimension-repository_nwo | TypeScriptToLua/TypeScriptToLua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 115876595 |
| octolytics-dimension-repository_network_root_nwo | TypeScriptToLua/TypeScriptToLua |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 625f1bd9f76a617a9c0729e2de91edb56b6ce42f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width