From 1a7d721152703fe056c7fdd0968ed1c46a8870e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 4 Jul 2022 17:57:35 +0800 Subject: stash --- script/vm/compiler.lua | 8 -------- 1 file changed, 8 deletions(-) (limited to 'script/vm/compiler.lua') diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 1ba20785..6932a8c8 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1313,14 +1313,6 @@ local compilerSwitch = util.switch() else vm.setNode(src, vm.compileNode(src.value), true) end - elseif src.value - and src.value.type == 'binary' - and src.value.op and src.value.op.type == 'or' - and src.value[1] and src.value[1].type == 'getlocal' and src.value[1].node == source then - -- x = x or 1 - vm.setNode(src, vm.compileNode(src.value)) - else - vm.setNode(src, node, true) end return vm.getNode(src) elseif src.type == 'getlocal' then -- cgit v1.2.3