mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-24 18:43:33 +03:00
12 lines
197 B
JavaScript
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;
|
|
}
|
|
};
|
|
};
|