Bug 1454373 - Make defer module use DOM Promises. r=jryans
☠☠ backed out by 3ee4cf8dc2ed ☠ ☠
authorAlexandre Poirot <poirot.alex@gmail.com>
Mon, 16 Apr 2018 06:56:06 -0700
changeset 467536 4ec712f0aa130867806fa76a9fe275f37f307a6b
parent 467535 b2ada4fddfa05ef471e99aec6035e63519b6f10d
child 467537 17905b182e88908ac89b04ead6ceb1d7398253a4
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjryans
bugs1454373
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1454373 - Make defer module use DOM Promises. r=jryans MozReview-Commit-ID: 2QWSgHcM7aR
devtools/shared/defer.js
--- a/devtools/shared/defer.js
+++ b/devtools/shared/defer.js
@@ -1,17 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-// See bug 1273941 to understand this choice of promise.
-const Promise = require("promise");
-
 /**
  * Returns a deferred object, with a resolve and reject property.
  * https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Deferred
  */
 module.exports = function defer() {
   let resolve, reject;
   let promise = new Promise(function() {
     resolve = arguments[0];