summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-12-25 08:51:41 +0800
committerLi Jin <dragon-fly@qq.com>2025-12-25 08:51:41 +0800
commit81daa7f89527e4bf8cf7ee4fdcec3f642ae508da (patch)
tree764afdb9ac7f75b5c1c8be6e663266b15c45d6c4 /src
parent7ee395d918b97795f151c24ed877bfcc2edf602a (diff)
downloadyuescript-0.30.4.tar.gz
yuescript-0.30.4.tar.bz2
yuescript-0.30.4.zip
Fixed a format crash issue.v0.30.4
Diffstat (limited to 'src')
-rw-r--r--src/yuescript/yue_ast.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuescript/yue_ast.cpp b/src/yuescript/yue_ast.cpp
index 55b5d03..d85e32e 100644
--- a/src/yuescript/yue_ast.cpp
+++ b/src/yuescript/yue_ast.cpp
@@ -83,7 +83,11 @@ std::string VarArg_t::to_string(void*) const {
83 return "..."s; 83 return "..."s;
84} 84}
85std::string VarArgDef_t::to_string(void* ud) const { 85std::string VarArgDef_t::to_string(void* ud) const {
86 return "..."s + name->to_string(ud); 86 if (name) {
87 return "..."s + name->to_string(ud);
88 } else {
89 return "..."s;
90 }
87} 91}
88std::string Seperator_t::to_string(void*) const { 92std::string Seperator_t::to_string(void*) const {
89 return {}; 93 return {};