Skip to content

Commit

Permalink
and I forgot to actually build it
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed Apr 30, 2016
1 parent fc836c9 commit 9d6051c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions dist/lie.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var REJECTED = ['REJECTED'];
var FULFILLED = ['FULFILLED'];
var PENDING = ['PENDING'];

module.exports = exports = Promise;
module.exports = Promise;

function Promise(resolver) {
if (typeof resolver !== 'function') {
Expand Down Expand Up @@ -165,21 +165,21 @@ function tryCatch(func, value) {
return out;
}

exports.resolve = resolve;
Promise.resolve = resolve;
function resolve(value) {
if (value instanceof this) {
return value;
}
return handlers.resolve(new this(INTERNAL), value);
}

exports.reject = reject;
Promise.reject = reject;
function reject(reason) {
var promise = new this(INTERNAL);
return handlers.reject(promise, reason);
}

exports.all = all;
Promise.all = all;
function all(iterable) {
var self = this;
if (Object.prototype.toString.call(iterable) !== '[object Array]') {
Expand Down Expand Up @@ -218,7 +218,7 @@ function all(iterable) {
}
}

exports.race = race;
Promise.race = race;
function race(iterable) {
var self = this;
if (Object.prototype.toString.call(iterable) !== '[object Array]') {
Expand Down
2 changes: 1 addition & 1 deletion dist/lie.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions dist/lie.polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var REJECTED = ['REJECTED'];
var FULFILLED = ['FULFILLED'];
var PENDING = ['PENDING'];

module.exports = exports = Promise;
module.exports = Promise;

function Promise(resolver) {
if (typeof resolver !== 'function') {
Expand Down Expand Up @@ -165,21 +165,21 @@ function tryCatch(func, value) {
return out;
}

exports.resolve = resolve;
Promise.resolve = resolve;
function resolve(value) {
if (value instanceof this) {
return value;
}
return handlers.resolve(new this(INTERNAL), value);
}

exports.reject = reject;
Promise.reject = reject;
function reject(reason) {
var promise = new this(INTERNAL);
return handlers.reject(promise, reason);
}

exports.all = all;
Promise.all = all;
function all(iterable) {
var self = this;
if (Object.prototype.toString.call(iterable) !== '[object Array]') {
Expand Down Expand Up @@ -218,7 +218,7 @@ function all(iterable) {
}
}

exports.race = race;
Promise.race = race;
function race(iterable) {
var self = this;
if (Object.prototype.toString.call(iterable) !== '[object Array]') {
Expand Down
2 changes: 1 addition & 1 deletion dist/lie.polyfill.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9d6051c

Please sign in to comment.