wasm-bindgen/crates/js-sys/tests/wasm/Proxy.js

12 lines
197 B
JavaScript
Raw Normal View History

2018-07-21 01:35:15 +03:00
exports.proxy_target = function() {
return { a: 100 };
};
exports.proxy_handler = function() {
return {
get: function(obj, prop) {
return prop in obj ? obj[prop] : 37;
}
};
};