Comparing version 1.1.2 to 1.1.3
1.1.3 / 2015-09-23 | ||
================== | ||
* appveyor: remove v1 | ||
* speed increase by avoiding `JSON.stringify()` constant call (#39, @dan-tull) | ||
1.1.2 / 2015-09-19 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -382,4 +382,5 @@ | ||
if (refCount > 0) { | ||
assert(rtn && 'size' in rtn && 'indirection' in rtn | ||
, 'could not determine a proper "type" from: ' + JSON.stringify(type)) | ||
if (!(rtn && 'size' in rtn && 'indirection' in rtn)) { | ||
throw new TypeError('could not determine a proper "type" from: ' + JSON.stringify(type)) | ||
} | ||
for (var i = 0; i < refCount; i++) { | ||
@@ -391,4 +392,5 @@ rtn = exports.refType(rtn) | ||
} | ||
assert(rtn && 'size' in rtn && 'indirection' in rtn | ||
, 'could not determine a proper "type" from: ' + JSON.stringify(type)) | ||
if (!(rtn && 'size' in rtn && 'indirection' in rtn)) { | ||
throw new TypeError('could not determine a proper "type" from: ' + JSON.stringify(type)) | ||
} | ||
return rtn | ||
@@ -395,0 +397,0 @@ } |
@@ -20,3 +20,3 @@ { | ||
], | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"license": "MIT", | ||
@@ -23,0 +23,0 @@ "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)", |
@@ -42,2 +42,8 @@ | ||
it('should throw a TypeError if a "type" can not be inferred', function () { | ||
assert.throws(function () { | ||
ref.coerceType({ }) | ||
}, /could not determine a proper \"type\"/) | ||
}) | ||
}) |
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
429229
2937