mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Update crates/cli-support/src/js/closures.rs
Co-Authored-By: alexcrichton <alex@alexcrichton.com>
This commit is contained in:
parent
2ff2e2505a
commit
407bc5dfbb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user