Port Proxy tests to wasm

This commit is contained in:
Alex Crichton
2018-07-20 15:35:15 -07:00
parent 01ff04d85c
commit ad86c52b02
5 changed files with 58 additions and 77 deletions

View File

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