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 2ed78b5 commit 1fdc2adCopy full SHA for 1fdc2ad
packages/async-rewriter3/src/lib.rs
@@ -134,7 +134,7 @@ fn fn_start_insertion(body: &ExprOrBlock) -> InsertionList {
134
if !is_block(body) {
135
ret.push_back(Insertion::new(
136
offset,
137
- "return ("
+ "return (_synchronousReturnValue = ("
138
));
139
}
140
ret
@@ -145,7 +145,7 @@ fn fn_end_insertion(body: &ExprOrBlock) -> InsertionList {
145
if is_block(body) {
146
offset = offset.checked_sub(1.into()).unwrap();
147
} else {
148
- ret.push_back(Insertion::new(offset, ");"));
+ ret.push_back(Insertion::new(offset, "));"));
149
150
ret.push_back(make_end_fn_insertion(offset));
151
0 commit comments