ospec fixes
This commit is contained in:
parent
ce0c30a235
commit
a1fbe16b55
2 changed files with 3 additions and 2 deletions
|
|
@ -1 +1 @@
|
||||||
node cli
|
node ospec
|
||||||
|
|
@ -84,6 +84,7 @@ module.exports = new function init() {
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
record(e.message, e)
|
record(e.message, e)
|
||||||
|
subjects.pop()
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
if (timeout === 0) {
|
if (timeout === 0) {
|
||||||
|
|
@ -177,7 +178,7 @@ module.exports = new function init() {
|
||||||
results.push(result)
|
results.push(result)
|
||||||
}
|
}
|
||||||
function serialize(value) {
|
function serialize(value) {
|
||||||
if (value === null || typeof value === "object") return String(value)
|
if (value === null || typeof value === "object" || typeof value === "number") return String(value)
|
||||||
else if (typeof value === "function") return value.name || "<anonymous function>"
|
else if (typeof value === "function") return value.name || "<anonymous function>"
|
||||||
try {return JSON.stringify(value)} catch (e) {return String(value)}
|
try {return JSON.stringify(value)} catch (e) {return String(value)}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue