summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/operator.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/vm/operator.lua b/script/vm/operator.lua
index e71911f9..9a8e255d 100644
--- a/script/vm/operator.lua
+++ b/script/vm/operator.lua
@@ -52,6 +52,14 @@ local function checkOperators(operators, op, value, result)
or not operator.extends then
goto CONTINUE
end
+ if value and operator.exp then
+ local valueNode = vm.compileNode(value)
+ local expNode = vm.compileNode(operator.exp)
+ local uri = guide.getUri(operator)
+ if not vm.isSubType(uri, valueNode, expNode) then
+ goto CONTINUE
+ end
+ end
if not result then
result = vm.createNode()
end