fwd/vendor/js-sys/tests/wasm/Proxy.js
John Doty 9c435dc440 Vendor dependencies
Let's see how I like this workflow.
2022-12-19 08:38:22 -08:00

11 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;
}
};
};