Revert "Handle js_tostring on objects without toString or toValue methods."

This reverts commit 7b37ef2b8a.
This commit is contained in:
Tor Andersson
2014-02-11 14:28:01 +01:00
parent 722c02ee1b
commit 56c5249e86
+1 -4
View File
@@ -93,10 +93,7 @@ js_Value jsV_toprimitive(js_State *J, const js_Value *v, int preferred)
return vv;
}
}
vv.type = JS_TSTRING;
vv.u.string = "[object]";
return vv;
js_typeerror(J, "cannot convert object to primitive");
}
/* ToBoolean() on a value */