Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / unit / test_bug1034262.js
blob6bd598bd536f2274bc84c7f13258b08aeb5383b9
1 function run_test() {
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');