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

Side by Side Diff: polymer_1.2.3/bower_components/promise-polyfill/Promise.min.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 m(n){function b(a){if("object"!==typeof this||"function"!==typeof a)thr ow new TypeError;this.c=this.a=null;this.b=[];g(a,h.bind(this),d.bind(this))}fun ction k(a){var c=this;null===this.a?this.b.push(a):n(function(){var f=c.a?a.d:a. e;if("function"!==typeof f)(c.a?a.resolve:a.reject)(c.c);else{var e;try{e=f(c.c) }catch(b){a.reject(b);return}a.resolve(e)}})}function h(a){try{if(a===this)throw new TypeError;if(a&&("object"===typeof a||"function"===typeof a)){var c=a.then; if("function"===typeof c){g(c.bind(a), 1 function m(n){function b(a){if("object"!==typeof this||"function"!==typeof a)thr ow new TypeError;this.c=this.a=null;this.b=[];g(a,h.bind(this),d.bind(this))}fun ction k(a){var c=this;null===this.a?this.b.push(a):n(function(){var f=c.a?a.d:a. e;if("function"!==typeof f)(c.a?a.resolve:a.reject)(c.c);else{var e;try{e=f(c.c) }catch(b){a.reject(b);return}a.resolve(e)}})}function h(a){try{if(a===this)throw new TypeError;if(a&&("object"===typeof a||"function"===typeof a)){var c=a.then; if("function"===typeof c){g(c.bind(a),
2 h.bind(this),d.bind(this));return}}this.a=!0;this.c=a;l.call(this)}catch(b){d.ca ll(this,b)}}function d(a){this.a=!1;this.c=a;l.call(this)}function l(){for(var a =0,c=this.b.length;a<c;a++)k.call(this,this.b[a]);this.b=null}function g(a,c,b){ var e=!1;try{a(function(a){e||(e=!0,c(a))},function(a){e||(e=!0,b(a))})}catch(d) {e||(e=!0,b(d))}}b.prototype["catch"]=function(a){return this.then(null,a)};b.pr ototype.then=function(a,c){var f=this;return new b(function(b,d){k.call(f,{d:a,e :c,resolve:b,reject:d})})}; 2 h.bind(this),d.bind(this));return}}this.a=!0;this.c=a;l.call(this)}catch(b){d.ca ll(this,b)}}function d(a){this.a=!1;this.c=a;l.call(this)}function l(){for(var a =0,c=this.b.length;a<c;a++)k.call(this,this.b[a]);this.b=null}function g(a,c,b){ var e=!1;try{a(function(a){e||(e=!0,c(a))},function(a){e||(e=!0,b(a))})}catch(d) {e||(e=!0,b(d))}}b.prototype["catch"]=function(a){return this.then(null,a)};b.pr ototype.then=function(a,c){var f=this;return new b(function(b,d){k.call(f,{d:a,e :c,resolve:b,reject:d})})};
3 b.resolve=function(a){return a&&"object"===typeof a&&a.constructor===b?a:new b(f unction(b){b(a)})};b.reject=function(a){return new b(function(b,d){d(a)})};retur n b}"undefined"!==typeof module&&(module.f=m); 3 b.resolve=function(a){return a&&"object"===typeof a&&a.constructor===b?a:new b(f unction(b){b(a)})};b.reject=function(a){return new b(function(b,d){d(a)})};retur n b}"undefined"!==typeof module&&(module.f=m);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698