mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-17 15:01:23 +00:00
Update crates/cli-support/src/js/closures.rs
Co-Authored-By: alexcrichton <alex@alexcrichton.com>
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user