Fix bogus arguments length check in StringLocaleCompare.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 10 May 2013 13:50:10 +0000 (13:50 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 10 May 2013 13:50:10 +0000 (13:50 +0000)
R=rossberg@chromium.org
TEST=test262/15.5.4.9_3

Review URL: https://codereview.chromium.org/14972015

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14623 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/string.js
test/test262/test262.status

index 4cae85b02220bb171becf9ea78d72458b1a40297..44315bba168b20197194556986be5d2aa97f7a8a 100644 (file)
@@ -170,7 +170,6 @@ function StringLocaleCompare(other) {
     throw MakeTypeError("called_on_null_or_undefined",
                         ["String.prototype.localeCompare"]);
   }
-  if (%_ArgumentsLength() === 0) return 0;
   return %StringLocaleCompare(TO_STRING_INLINE(this),
                               TO_STRING_INLINE(other));
 }
index 4d0dafad19bb5b2d50c3ce78036983d50b8b6743..4910939f15a8e7c5309d59b2d7b0746dfb94ce57 100644 (file)
@@ -41,10 +41,6 @@ def FAIL_OK = FAIL, OKAY
 # V8 Bug: http://code.google.com/p/v8/issues/detail?id=2413
 15.5.4.9_CE: FAIL
 
-# Missing 'that' parameter should be treated as an implicit 'undefined' when
-# String.prototype.localeCompare is called.
-15.5.4.9_3: FAIL
-
 ##################### DELIBERATE INCOMPATIBILITIES #####################
 
 # This tests precision of Math functions.  The implementation for those