mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-16 06:21:22 +00:00
Define is_truthy in terms of is_falsy
This commit is contained in:
@ -2299,11 +2299,6 @@ impl<'a> Context<'a> {
|
||||
format!("typeof({}) === 'string'", args[0])
|
||||
}
|
||||
|
||||
Intrinsic::IsTruthy => {
|
||||
assert_eq!(args.len(), 1);
|
||||
format!("!!{}", args[0])
|
||||
}
|
||||
|
||||
Intrinsic::IsFalsy => {
|
||||
assert_eq!(args.len(), 1);
|
||||
format!("!{}", args[0])
|
||||
|
Reference in New Issue
Block a user