From 1b6ce6abc0c11572d8ae4af1c07ddfcc9514dd57 Mon Sep 17 00:00:00 2001 From: Cedric <14017092+douyixuan@users.noreply.github.com> Date: Thu, 19 Sep 2024 21:46:00 +0800 Subject: [PATCH] disable print function --- compiler/compiler/func.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/compiler/func.go b/compiler/compiler/func.go index b99c438..2f6903a 100644 --- a/compiler/compiler/func.go +++ b/compiler/compiler/func.go @@ -425,8 +425,6 @@ func (c *Compiler) compileCallNode(v *parser.CallNode) value.Value { return c.capFuncCall(v) case "append": return c.appendFuncCall(v) - case "print": - return c.printFuncCall(v) case "panic": message, _ := v.Arguments[0].(*parser.ConstantNode) c.panic(c.contextBlock, message.ValueStr)