mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-08 12:22:34 +00:00
Bug 887907 - Move OS.File to use Promise.jsm; r=gps
--HG-- extra : rebase_source : cab194eea7781dfd5c14732a77710d6d7904525b
This commit is contained in:
parent
42183897e2
commit
d44e08b773
@ -10,7 +10,7 @@
|
||||
this.EXPORTED_SYMBOLS = ["PromiseWorker"];
|
||||
|
||||
// The library of promises.
|
||||
Components.utils.import("resource://gre/modules/commonjs/sdk/core/promise.js", this);
|
||||
Components.utils.import("resource://gre/modules/Promise.jsm", this);
|
||||
|
||||
/**
|
||||
* An implementation of queues (FIFO).
|
||||
|
@ -45,7 +45,7 @@ if (OS.Constants.Win) {
|
||||
let Type = OS.Shared.Type;
|
||||
|
||||
// The library of promises.
|
||||
Components.utils.import("resource://gre/modules/commonjs/sdk/core/promise.js", this);
|
||||
Components.utils.import("resource://gre/modules/Promise.jsm", this);
|
||||
|
||||
// The implementation of communications
|
||||
Components.utils.import("resource://gre/modules/osfile/_PromiseWorker.jsm", this);
|
||||
|
@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
Components.utils.import("resource://gre/modules/osfile.jsm");
|
||||
Components.utils.import("resource://gre/modules/commonjs/sdk/core/promise.js");
|
||||
Components.utils.import("resource://gre/modules/Promise.jsm");
|
||||
Components.utils.import("resource://gre/modules/Task.jsm");
|
||||
|
||||
// The following are used to compare against a well-tested reference
|
||||
|
Loading…
Reference in New Issue
Block a user