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
407bc5dfbb
commit
6c62d54ad9
@ -209,7 +209,7 @@ impl ClosureDescriptors {
|
||||
builder
|
||||
.rust_argument("this.a")
|
||||
.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(
|
||||
"function",
|
||||
|
Loading…
x
Reference in New Issue
Block a user