diff options
| author | Hisham Muhammad <--unset> | 2026-02-01 18:20:57 -0300 |
|---|---|---|
| committer | Hisham Muhammad <--unset> | 2026-02-01 18:20:57 -0300 |
| commit | 1f6b82a08574b66995181889b786fd22a003f7d3 (patch) | |
| tree | 764cc633a2fbb78f0e0c1454d41567c1864ee67e /compat53/module.lua | |
| parent | bb24943ca32db3a901a837468f104dea78c9271c (diff) | |
| download | lua-compat-5.3-1f6b82a08574b66995181889b786fd22a003f7d3.tar.gz lua-compat-5.3-1f6b82a08574b66995181889b786fd22a003f7d3.tar.bz2 lua-compat-5.3-1f6b82a08574b66995181889b786fd22a003f7d3.zip | |
assert: skip compat53 itself from the stacktrace
Diffstat (limited to 'compat53/module.lua')
| -rw-r--r-- | compat53/module.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat53/module.lua b/compat53/module.lua index 6133a34..b583875 100644 --- a/compat53/module.lua +++ b/compat53/module.lua | |||
| @@ -170,9 +170,9 @@ if lua_version < "5.3" then | |||
| 170 | if cond then | 170 | if cond then |
| 171 | return cond, ... | 171 | return cond, ... |
| 172 | elseif select('#', ...) > 0 then | 172 | elseif select('#', ...) > 0 then |
| 173 | error((...), 0) | 173 | error((...), 2) |
| 174 | else | 174 | else |
| 175 | error("assertion failed!", 0) | 175 | error("assertion failed!", 2) |
| 176 | end | 176 | end |
| 177 | end | 177 | end |
| 178 | 178 | ||
