summaryrefslogtreecommitdiffstats
path: root/vendor/js-sys/tests/wasm/Proxy.js
blob: eb0a125836225f253df4da875fdd81725b10b0d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
exports.proxy_target = function() {
  return { a: 100 };
};

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