2 var sb1 = Cu.Sandbox('http://www.example.com', { wantXrays: true });
3 var sb2 = Cu.Sandbox('http://www.example.com', { wantXrays: false });
4 sb2.f = Cu.evalInSandbox('x => typeof x', sb1);
5 Assert.equal(Cu.evalInSandbox('f(dump)', sb2), 'function');
6 Assert.equal(Cu.evalInSandbox('f.call(null, dump)', sb2), 'function');
7 Assert.equal(Cu.evalInSandbox('f.apply(null, [dump])', sb2), 'function');