Index: src/runtime.js |
=================================================================== |
--- src/runtime.js (revision 460) |
+++ src/runtime.js (working copy) |
@@ -396,7 +396,6 @@ |
function ToPrimitive(x, hint) { |
// Fast case check. |
if (IS_STRING(x)) return x; |
- if ((hint != NUMBER_HINT) && %IsStringClass(x)) return %_ValueOf(x); |
// Normal behaior. |
if (!IS_OBJECT(x) && !IS_FUNCTION(x)) return x; |
if (x == null) return x; // check for null, undefined |