2 sb = new Cu.Sandbox('http://www.example.com',
3 { wantGlobalProperties: ["TextDecoder", "TextEncoder"] });
5 Cu.evalInSandbox('equal(new TextDecoder().encoding, "utf-8");' +
6 'equal(new TextEncoder().encoding, "utf-8");',
8 Cu.importGlobalProperties(["TextDecoder", "TextEncoder"]);
9 Assert.equal(new TextDecoder().encoding, "utf-8");
10 Assert.equal(new TextEncoder().encoding, "utf-8");