mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Add a test for webidl
This commit is contained in:
@ -93,6 +93,20 @@ global.GlobalMethod = class GlobalMethod {
|
||||
}
|
||||
};
|
||||
|
||||
global.Indexing = function () {
|
||||
return new Proxy({}, {
|
||||
get(obj, prop) {
|
||||
return obj.hasOwnProperty(prop) ? obj[prop] : -1;
|
||||
},
|
||||
set(obj, prop, value) {
|
||||
obj[prop] = value;
|
||||
},
|
||||
deleteProperty(obj, prop) {
|
||||
delete obj[prop];
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
global.PartialInterface = class PartialInterface {
|
||||
get un() {
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user