Skip to content

Commit

Permalink
Release v1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
petkaantonov committed Apr 27, 2014
1 parent 968df84 commit ca0f2f8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 18 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bluebird",
"version": "1.2.3",
"version": "1.2.4",
"homepage": "https://github.com/petkaantonov/bluebird",
"authors": [
"Petka Antonov <[email protected]>"
Expand Down Expand Up @@ -32,4 +32,4 @@
"dsl",
"fluent interface"
]
}
}
25 changes: 18 additions & 7 deletions browser/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4293,7 +4293,7 @@ else {
var str = {}.toString;
var proto = {}.constructor.prototype;

function ObjectKeys(o) {
var ObjectKeys = function ObjectKeys(o) {
var ret = [];
for (var key in o) {
if (has.call(o, key)) {
Expand All @@ -4303,16 +4303,16 @@ else {
return ret;
}

function ObjectDefineProperty(o, key, desc) {
var ObjectDefineProperty = function ObjectDefineProperty(o, key, desc) {
o[key] = desc.value;
return o;
}

function ObjectFreeze(obj) {
var ObjectFreeze = function ObjectFreeze(obj) {
return obj;
}

function ObjectGetPrototypeOf(obj) {
var ObjectGetPrototypeOf = function ObjectGetPrototypeOf(obj) {
try {
return Object(obj).constructor.prototype;
}
Expand All @@ -4321,7 +4321,7 @@ else {
}
}

function ArrayIsArray(obj) {
var ArrayIsArray = function ArrayIsArray(obj) {
try {
return str.call(obj) === "[object Array]";
}
Expand Down Expand Up @@ -6612,6 +6612,9 @@ PromiseResolver.prototype.toString = function PromiseResolver$toString() {
PromiseResolver.prototype.resolve =
PromiseResolver.prototype.fulfill = function PromiseResolver$resolve(value) {
var promise = this.promise;
if ((promise === void 0) || (promise._tryFollow === void 0)) {
throw new TypeError("Illegal invocation, resolver resolve/reject must be called within a resolver context. Consider using the promise constructor instead.");
}
if (promise._tryFollow(value)) {
return;
}
Expand All @@ -6620,6 +6623,9 @@ PromiseResolver.prototype.fulfill = function PromiseResolver$resolve(value) {

PromiseResolver.prototype.reject = function PromiseResolver$reject(reason) {
var promise = this.promise;
if ((promise === void 0) || (promise._attachExtraTrace === void 0)) {
throw new TypeError("Illegal invocation, resolver resolve/reject must be called within a resolver context. Consider using the promise constructor instead.");
}
errors.markAsOriginatingFromRejection(reason);
var trace = errors.canAttach(reason) ? reason : new Error(reason + "");
promise._attachExtraTrace(trace);
Expand Down Expand Up @@ -6930,9 +6936,8 @@ function parameterCount(fn) {
return 0;
}

var rident = /^[a-z$_][a-z$_0-9]*$/i;
function propertyAccess(id) {
var rident = /^[a-z$_][a-z$_0-9]*$/i;

if (rident.test(id)) {
return "." + id;
}
Expand Down Expand Up @@ -6970,6 +6975,10 @@ function makeNodePromisifiedEval(callback, receiver, originalName, fn) {
"break;";
}

if (!rident.test(callbackName)) {
callbackName = "promisified";
}

function generateArgumentSwitchCase() {
var ret = "";
for(var i = 0; i < argumentOrder.length; ++i) {
Expand Down Expand Up @@ -24119,6 +24128,8 @@ describe( "Promisify from prototype to object", function() {

};

method["---invalid---"] = function(){};

if ((function(){"use strict"; return this === void 0})()) {
Object.defineProperty(method, "thrower", {
enumerable: true,
Expand Down
25 changes: 17 additions & 8 deletions js/browser/bluebird.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* bluebird build version 1.2.3
* bluebird build version 1.2.4
* Features enabled: core, timers, race, any, call_get, filter, generators, map, nodeify, promisify, props, reduce, settle, some, progress, cancel
*/
/**
Expand Down Expand Up @@ -949,7 +949,7 @@ else {
var str = {}.toString;
var proto = {}.constructor.prototype;

function ObjectKeys(o) {
var ObjectKeys = function ObjectKeys(o) {
var ret = [];
for (var key in o) {
if (has.call(o, key)) {
Expand All @@ -959,16 +959,16 @@ else {
return ret;
}

function ObjectDefineProperty(o, key, desc) {
var ObjectDefineProperty = function ObjectDefineProperty(o, key, desc) {
o[key] = desc.value;
return o;
}

function ObjectFreeze(obj) {
var ObjectFreeze = function ObjectFreeze(obj) {
return obj;
}

function ObjectGetPrototypeOf(obj) {
var ObjectGetPrototypeOf = function ObjectGetPrototypeOf(obj) {
try {
return Object(obj).constructor.prototype;
}
Expand All @@ -977,7 +977,7 @@ else {
}
}

function ArrayIsArray(obj) {
var ArrayIsArray = function ArrayIsArray(obj) {
try {
return str.call(obj) === "[object Array]";
}
Expand Down Expand Up @@ -3098,6 +3098,9 @@ PromiseResolver.prototype.toString = function PromiseResolver$toString() {
PromiseResolver.prototype.resolve =
PromiseResolver.prototype.fulfill = function PromiseResolver$resolve(value) {
var promise = this.promise;
if ((promise === void 0) || (promise._tryFollow === void 0)) {
throw new TypeError("Illegal invocation, resolver resolve/reject must be called within a resolver context. Consider using the promise constructor instead.");
}
if (promise._tryFollow(value)) {
return;
}
Expand All @@ -3106,6 +3109,9 @@ PromiseResolver.prototype.fulfill = function PromiseResolver$resolve(value) {

PromiseResolver.prototype.reject = function PromiseResolver$reject(reason) {
var promise = this.promise;
if ((promise === void 0) || (promise._attachExtraTrace === void 0)) {
throw new TypeError("Illegal invocation, resolver resolve/reject must be called within a resolver context. Consider using the promise constructor instead.");
}
errors.markAsOriginatingFromRejection(reason);
var trace = errors.canAttach(reason) ? reason : new Error(reason + "");
promise._attachExtraTrace(trace);
Expand Down Expand Up @@ -3412,9 +3418,8 @@ function parameterCount(fn) {
return 0;
}

var rident = /^[a-z$_][a-z$_0-9]*$/i;
function propertyAccess(id) {
var rident = /^[a-z$_][a-z$_0-9]*$/i;

if (rident.test(id)) {
return "." + id;
}
Expand Down Expand Up @@ -3450,6 +3455,10 @@ function makeNodePromisifiedEval(callback, receiver, originalName, fn) {
"break;";
}

if (!rident.test(callbackName)) {
callbackName = "promisified";
}

function generateArgumentSwitchCase() {
var ret = "";
for(var i = 0; i < argumentOrder.length; ++i) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bluebird",
"description": "Full featured Promises/A+ implementation with exceptionally good performance",
"version": "1.2.3",
"version": "1.2.4",
"keywords": [
"promise",
"performance",
Expand Down

0 comments on commit ca0f2f8

Please sign in to comment.