diff --git a/changelog.md b/changelog.md index 7c92fd523..98edf6c22 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,8 @@ ## Unreleased +`2025-3-26` +* `FIX` add missing comparison operators `eq`, `lt`, and `le` ## 3.13.9 `2025-3-13` diff --git a/script/vm/operator.lua b/script/vm/operator.lua index 07ce19ebe..ce774621c 100644 --- a/script/vm/operator.lua +++ b/script/vm/operator.lua @@ -23,6 +23,9 @@ vm.BINARY_OP = { 'shl', 'shr', 'concat', + 'eq', + 'lt', + 'le', } vm.OTHER_OP = { 'call', @@ -48,6 +51,9 @@ local binaryMap = { ['<<'] = 'shl', ['>>'] = 'shr', ['..'] = 'concat', + ['=='] = 'eq', + ['<='] = 'le', + ['<'] = 'lt', } local otherMap = {