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