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

Co-Authored-By: alexcrichton <alex@alexcrichton.com>
This commit is contained in:
Nick Fitzgerald 2019-03-21 19:05:10 -05:00 committed by GitHub
parent 2ff2e2505a
commit 407bc5dfbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ impl ClosureDescriptors {
.prelude("this.a = 0;")
.rust_argument("a")
.rust_argument("b")
.finally("if (this.cnt-- == 1) d(a, b);")
.finally("if (--this.cnt === 0) d(a, b);")
.finally("else this.a = a;");
} else {
// For shared closures they can be invoked recursively so we