mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 13:01:22 +00:00
bool -> boolean in generated TypeScript code (#1933)
* bool -> boolean in generated TypeScript code * Add a test for booleans Co-authored-by: Alex Crichton <alex@alexcrichton.com>
This commit is contained in:
committed by
Alex Crichton
parent
e169f45e1a
commit
620212dff8
@ -875,7 +875,7 @@ fn instruction(js: &mut JsBuilder, instr: &Instruction, log_error: &mut bool) ->
|
||||
}
|
||||
|
||||
Instruction::BoolFromI32 => {
|
||||
js.typescript_required("bool");
|
||||
js.typescript_required("boolean");
|
||||
let val = js.pop();
|
||||
js.push(format!("{} !== 0", val));
|
||||
}
|
||||
|
Reference in New Issue
Block a user