1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-03-31 17:31:06 +00:00

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

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