wasm-bindgen/crates/js-sys/tests/wasm/Proxy.js
2018-07-20 15:35:15 -07:00

12 lines
197 B
JavaScript

exports.proxy_target = function() {
return { a: 100 };
};
exports.proxy_handler = function() {
return {
get: function(obj, prop) {
return prop in obj ? obj[prop] : 37;
}
};
};