diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-12 09:08:12 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-12 09:08:12 +0800 |
| commit | 640dcd82b30629f54596820c09144dfff10cb2c0 (patch) | |
| tree | e6c1822f459b8afc64d06a86459cf676ea7c74c2 /src | |
| parent | 4e7edb2bd615e0a86b593c56c3392fab2110b1a1 (diff) | |
| download | yuescript-640dcd82b30629f54596820c09144dfff10cb2c0.tar.gz yuescript-640dcd82b30629f54596820c09144dfff10cb2c0.tar.bz2 yuescript-640dcd82b30629f54596820c09144dfff10cb2c0.zip | |
Added more tests.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuescript/yue_compiler.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index caeee53..2615a2b 100644 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp | |||
| @@ -8948,10 +8948,6 @@ private: | |||
| 8948 | addToScope(var); | 8948 | addToScope(var); |
| 8949 | } | 8949 | } |
| 8950 | popScope(); | 8950 | popScope(); |
| 8951 | } else { | ||
| 8952 | if (breakLoop->valueList->exprs.size() != breakWithValues.size()) { | ||
| 8953 | throw CompileError("expecting "s + std::to_string(breakWithValues.size()) + " break values, got "s + std::to_string(breakLoop->valueList->exprs.size()), breakLoop->valueList->exprs.front()); | ||
| 8954 | } | ||
| 8955 | } | 8951 | } |
| 8956 | breakLoop->vars = breakWithValues; | 8952 | breakLoop->vars = breakWithValues; |
| 8957 | } else { | 8953 | } else { |
