Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Side by Side Diff: polymer_1.2.3/bower_components/promise-polyfill/Promise.js

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 function MakePromise (asap) { 1 function MakePromise (asap) {
2 function Promise(fn) { 2 function Promise(fn) {
3 if (typeof this !== 'object' || typeof fn !== 'function') throw new TypeError(); 3 if (typeof this !== 'object' || typeof fn !== 'function') throw new TypeError();
4 this._state = null; 4 this._state = null;
5 this._value = null; 5 this._value = null;
6 this._deferreds = [] 6 this._deferreds = []
7 7
8 doResolve(fn, resolve.bind(this), reject.bind(this)); 8 doResolve(fn, resolve.bind(this), reject.bind(this));
9 } 9 }
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 }; 119 };
120 120
121 121
122 return Promise; 122 return Promise;
123 } 123 }
124 124
125 if (typeof module !== 'undefined') { 125 if (typeof module !== 'undefined') {
126 module.exports = MakePromise; 126 module.exports = MakePromise;
127 } 127 }
128 128
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698