From 4b50aadfe051ab5439800b935f00616ba3855c05 Mon Sep 17 00:00:00 2001 From: cdle Date: Thu, 8 Jun 2023 10:59:14 +0800 Subject: [PATCH] x --- core/node_os.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/node_os.go b/core/node_os.go index 8b44e1d..9d82319 100644 --- a/core/node_os.go +++ b/core/node_os.go @@ -26,7 +26,7 @@ func getJsOs(vm *goja.Runtime, running func() bool) *goja.Object { }) jsos.Set("readFileSync", func(path string) string { // 读取文件内容 - content, err := ioutil.ReadFile("example.txt") + content, err := ioutil.ReadFile(path) if err != nil { panic(Error(vm, err)) }