mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-24 18:21:33 +00:00
Refactor creation of functions in the backend
This commit refactors the lowest-level primitive for creating functions into a new `create_one_function` function. This doesn't take into account overloading but is suitable for things like `create_{getter,setter}`. Eventually the overloading will be implemented in terms of this function.
This commit is contained in:
@ -118,7 +118,7 @@ fn mixin() {
|
||||
#[wasm_bindgen_test]
|
||||
fn overload_naming() {
|
||||
let o = Overloads::new().unwrap();
|
||||
o.foo();
|
||||
o.foo_with_arg("x");
|
||||
o.foo_with_arg_and_a("x", 3);
|
||||
// o.foo();
|
||||
// o.foo_with_arg("x");
|
||||
// o.foo_with_arg_and_a("x", 3);
|
||||
}
|
||||
|
Reference in New Issue
Block a user