ref: 5b86924fe10f42876556676f47eda58d1a1de56d
parent: 9f7141ce3047e0512dfd765553af7464975ea2d7
author: Tor Andersson <[email protected]>
date: Thu Feb 13 08:53:36 EST 2014
Fix typo in ToBoolean.
--- a/jsvalue.c
+++ b/jsvalue.c
@@ -106,7 +106,7 @@
case JS_TBOOLEAN: return v->u.boolean;
case JS_TNUMBER: return v->u.number != 0 && !isnan(v->u.number);
case JS_TSTRING: return v->u.string[0] != 0;
- case JS_TOBJECT: return 0;
+ case JS_TOBJECT: return 1;
}
return 0;
}