mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 23:41:24 +00:00
Port Proxy
tests to wasm
This commit is contained in:
11
crates/js-sys/tests/wasm/Proxy.js
Normal file
11
crates/js-sys/tests/wasm/Proxy.js
Normal file
@ -0,0 +1,11 @@
|
||||
exports.proxy_target = function() {
|
||||
return { a: 100 };
|
||||
};
|
||||
|
||||
exports.proxy_handler = function() {
|
||||
return {
|
||||
get: function(obj, prop) {
|
||||
return prop in obj ? obj[prop] : 37;
|
||||
}
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user