mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-17 06:51:24 +00:00
Update crates/cli-support/src/js/closures.rs
Co-Authored-By: alexcrichton <alex@alexcrichton.com>
This commit is contained in:
@ -209,7 +209,7 @@ impl ClosureDescriptors {
|
|||||||
builder
|
builder
|
||||||
.rust_argument("this.a")
|
.rust_argument("this.a")
|
||||||
.rust_argument("b")
|
.rust_argument("b")
|
||||||
.finally("if (this.cnt-- == 1) { d(this.a, b); this.a = 0; }");
|
.finally("if (--this.cnt === 0) { d(this.a, b); this.a = 0; }");
|
||||||
}
|
}
|
||||||
builder.process(&closure.function, None)?.finish(
|
builder.process(&closure.function, None)?.finish(
|
||||||
"function",
|
"function",
|
||||||
|
Reference in New Issue
Block a user