diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuescript/yue_ast.cpp | 6 |
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 | } |
| 85 | std::string VarArgDef_t::to_string(void* ud) const { | 85 | std::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 | } |
| 88 | std::string Seperator_t::to_string(void*) const { | 92 | std::string Seperator_t::to_string(void*) const { |
| 89 | return {}; | 93 | return {}; |
