Author: [EMAIL PROTECTED]
Date: Tue Oct 7 05:06:48 2008
New Revision: 461
Modified:
branches/bleeding_edge/src/runtime.js
Log:
-Fixed regression in S15.5.5.1_A5.js.
I eliminated the fast case check in ToPrimitive.
Review URL: http://codereview.chromium.org/6534
Modified: branches/bleeding_edge/src/runtime.js
==============================================================================
--- branches/bleeding_edge/src/runtime.js (original)
+++ branches/bleeding_edge/src/runtime.js Tue Oct 7 05:06:48 2008
@@ -396,8 +396,7 @@
function ToPrimitive(x, hint) {
// Fast case check.
if (IS_STRING(x)) return x;
- if ((hint != NUMBER_HINT) && %IsStringClass(x)) return %_ValueOf(x);
- // Normal behaior.
+ // Normal behavior.
if (!IS_OBJECT(x) && !IS_FUNCTION(x)) return x;
if (x == null) return x; // check for null, undefined
if (hint == NO_HINT) hint = (IS_DATE(x)) ? STRING_HINT : NUMBER_HINT;
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---