2 var sb = Cu.Sandbox('http://www.example.com', { wantGlobalProperties: ['XMLHttpRequest']});
3 var xhr = Cu.evalInSandbox('new XMLHttpRequest()', sb);
4 Assert.equal(xhr[Symbol.toStringTag], "XMLHttpRequest");
5 Assert.equal(xhr.toString(), '[object XMLHttpRequest]');
6 Assert.equal((new sb.Object()).toString(), '[object Object]');
7 Assert.equal(sb.Object.prototype.toString.call(new sb.Uint16Array()), '[object Uint16Array]');