summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_bug845862.js
blob: 41d799803fa21bcfc4615aa6b6322cf7847e68c0 (plain)
1
2
3
4
5
6
7
function run_test() {
  var sb = new Cu.Sandbox('http://www.example.com');
  Cu.evalInSandbox("this.foo = {}; Object.defineProperty(foo, 'bar', {get: function() {return {};}});", sb);
  var desc = Object.getOwnPropertyDescriptor(Cu.waiveXrays(sb.foo), 'bar');
  var b = desc.get();
  Assert.ok(b != XPCNativeWrapper(b), "results from accessor descriptors are waived");
}