Skip to content

Commit 6c62d54

Browse files
Update crates/cli-support/src/js/closures.rs
Co-Authored-By: alexcrichton <[email protected]>
1 parent 407bc5d commit 6c62d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cli-support/src/js/closures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl ClosureDescriptors {
209209
builder
210210
.rust_argument("this.a")
211211
.rust_argument("b")
212-
.finally("if (this.cnt-- == 1) { d(this.a, b); this.a = 0; }");
212+
.finally("if (--this.cnt === 0) { d(this.a, b); this.a = 0; }");
213213
}
214214
builder.process(&closure.function, None)?.finish(
215215
"function",

0 commit comments

Comments
 (0)