source/js/_files/es6-promise.js
File es6-promise.js
has 528 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
Function Enumerator
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Enumerator = function () {
function Enumerator(Constructor, input) {
this._instanceConstructor = Constructor;
this.promise = new Constructor(noop);
Function invokeCallback
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function invokeCallback(settled, promise, callback, detail) {
var hasCallback = isFunction(callback),
value = void 0,
error = void 0,
succeeded = void 0,
Function Promise$2
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Promise$2 = function () {
function Promise(resolver) {
this[PROMISE_ID] = nextId();
this._result = this._state = undefined;
this._subscribers = [];