mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 00:15:46 +01:00
Fix charset bustage.
This commit is contained in:
@@ -17,7 +17,7 @@ function module(url) {
|
||||
}
|
||||
|
||||
var { XPCOMUtils } = module("resource://gre/modules/XPCOMUtils.jsm");
|
||||
var { OS, TextDecoder, TextEncoder } = module("resource://gre/modules/osfile.jsm");
|
||||
var { OS } = module("resource://gre/modules/osfile.jsm");
|
||||
try {
|
||||
var { ctypes } = module("resource://gre/modules/ctypes.jsm");
|
||||
}
|
||||
@@ -748,9 +748,13 @@ function memoize(obj, key, getter) {
|
||||
}
|
||||
}
|
||||
|
||||
let sandbox = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance());
|
||||
|
||||
let sandbox = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(),
|
||||
{ wantGlobalProperties: ["TextDecoder", "TextEncoder"] });
|
||||
sandbox.__proto__ = this;
|
||||
|
||||
var { TextEncoder, TextDecoder } = sandbox;
|
||||
|
||||
/**
|
||||
* Updates an object with the properties of another object. Getters
|
||||
* and setters are copied as expected. Moreover, any function
|
||||
|
||||
Reference in New Issue
Block a user