mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 14:31:45 +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;
|
||
|
}
|
||
|
};
|
||
|
};
|