mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Add OptionalAndUnionArguments test
This commit is contained in:
@ -67,7 +67,7 @@ global.UndefinedMethod = class UndefinedMethod {
|
||||
}
|
||||
};
|
||||
|
||||
global.OptionalMethod = class OptionalMethod {
|
||||
global.NullableMethod = class NullableMethod {
|
||||
constructor() {}
|
||||
opt(a) {
|
||||
if (a == undefined) {
|
||||
@ -107,6 +107,13 @@ global.Indexing = function () {
|
||||
});
|
||||
};
|
||||
|
||||
global.OptionalAndUnionArguments = class OptionalAndUnionArguments {
|
||||
constructor() {}
|
||||
m(a, b = true, c = 123, d = 456) {
|
||||
return [typeof a, a, typeof b, b, typeof c, c, typeof d, d].join(', ');
|
||||
}
|
||||
};
|
||||
|
||||
global.PartialInterface = class PartialInterface {
|
||||
get un() {
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user