We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52124db commit da5c2b5Copy full SHA for da5c2b5
examples/try.wy
@@ -14,7 +14,7 @@
14
豈「「滅頂」」之禍歟。
15
吾有一言。曰「「嗚呼哀哉。伏维尚飨」」。書之。
16
17
-不知何禍歟。
+不知何禍歟。名之曰「奇禍」。
18
吾有一言。曰「「人坐家中。禍從天降」」。書之。
19
20
乃作罷。
@@ -26,9 +26,6 @@
26
27
28
姑妄行此。
29
- 嗚呼。「「無妄」」之禍。
+ 嗚呼。「「事不關心」」之禍。
30
31
-如事不諧。不知何禍歟。
32
- 吾有一言。曰「「事不關心。關心者亂」」。書之。
33
-
34
-乃作罷。
+如事不諧。不知何禍歟。書之。乃作罷。
src/parser.js
@@ -827,9 +827,12 @@ function asc2js(asc, imports = []) {
827
} else if (a.op == "catcherr") {
828
var ec = errcurlvls[errcurlvls.length - 1];
829
if (a.error == undefined) {
830
+ var vname = nextTmpVar();
831
+ strayvar.push(vname);
832
if (curlvl != ec[0]) {
833
js += `}else{`;
834
}
835
+ js += `var ${vname}=${ec[1]}.name;`;
836
} else {
837
838
js += `}else `;
0 commit comments