We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22f29e5 commit 809fe8dCopy full SHA for 809fe8d
changelog.md
@@ -3,6 +3,7 @@
3
## 3.1.1
4
* `FIX` [#1051](https://github.com/sumneko/lua-language-server/issues/1051)
5
* `FIX` [#1072](https://github.com/sumneko/lua-language-server/issues/1072)
6
+* `FIX` runtime errors
7
8
## 3.1.0
9
`2022-4-17`
script/vm/compiler.lua
@@ -1506,7 +1506,7 @@ local compilerSwitch = util.switch()
1506
if source.op.type == '%' then
1507
local a = vm.getNumber(source[1])
1508
local b = vm.getNumber(source[2])
1509
- if a and b then
+ if a and b and b ~= 0 then
1510
local result = a % b
1511
vm.setNode(source, {
1512
type = math.type(result) == 'integer' and 'integer' or 'number',
0 commit comments