Comparing version 0.2.3 to 0.2.4
@@ -1,2 +0,2 @@ | ||
// vim:ts=4:sts=4:sw=4: | ||
// Tyler Close | ||
@@ -254,4 +254,5 @@ // Ported and revised by Kris Kowal | ||
reject.prototype = create(Promise.prototype); | ||
reject.prototype.constructor = reject; | ||
reject.prototype = create(Promise.prototype, { | ||
constructor: { value: reject } | ||
}); | ||
@@ -280,3 +281,3 @@ /** | ||
}, | ||
"delete": function (name) { | ||
"del": function (name) { | ||
delete object[name]; | ||
@@ -283,0 +284,0 @@ }, |
{ | ||
"name": "q", | ||
"description": "defer/when-style promises (CommonJS/Promises/B)", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"homepage": "http://github.com/kriskowal/q/", | ||
@@ -6,0 +6,0 @@ "author": "Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/)", |
@@ -9,4 +9,5 @@ 'use strict' | ||
exports['test multiple listeners'] = require('./multiple-listeners') | ||
exports['test methods'] = require('./methods') | ||
if (module == require.main) require('test').run(exports) | ||
@@ -122,3 +122,3 @@ 'use strict' | ||
, resolve | ||
, function resolved(v) { | ||
, function rejected(v) { | ||
assert.equal(v, v1, 'promise#1 delegates rejection') | ||
@@ -129,5 +129,5 @@ done() | ||
d1.resolve(v1) | ||
d1.reject(v1) | ||
} | ||
if (module == require.main) require('test').run(exports) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72665
24
1368