mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-20 16:26:33 +00:00
Pass numbers in js as enums to Rust successfully
This commit is contained in:
@ -1051,7 +1051,8 @@ impl<'a, 'b> SubContext<'a, 'b> {
|
||||
passed_args.push_str(arg);
|
||||
};
|
||||
match *arg {
|
||||
shared::TYPE_NUMBER => {
|
||||
shared::TYPE_ENUM | shared::TYPE_NUMBER => {
|
||||
// TODO: TS for Enum
|
||||
dst_ts.push_str(": number");
|
||||
if self.cx.config.debug {
|
||||
self.cx.expose_assert_num();
|
||||
|
Reference in New Issue
Block a user