mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 00:15:46 +01:00
Promises cleanup.
This commit is contained in:
@@ -182,7 +182,6 @@ defineModule("base", {
|
||||
"Cr",
|
||||
"Cs",
|
||||
"Cu",
|
||||
"DOMPromise",
|
||||
"ErrorBase",
|
||||
"Finished",
|
||||
"JSMLoader",
|
||||
@@ -762,12 +761,6 @@ function memoize(obj, key, getter) {
|
||||
}
|
||||
}
|
||||
|
||||
let sandbox = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(),
|
||||
{ wantGlobalProperties: ["TextDecoder", "TextEncoder"],
|
||||
sandboxPrototype: this });
|
||||
|
||||
var { TextEncoder, TextDecoder, Promise: DOMPromise } = 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