Fix bogus arguments length check in StringLocaleCompare.

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
parent 9e620bb6
...@@ -170,7 +170,6 @@ function StringLocaleCompare(other) { ...@@ -170,7 +170,6 @@ function StringLocaleCompare(other) {
throw MakeTypeError("called_on_null_or_undefined", throw MakeTypeError("called_on_null_or_undefined",
["String.prototype.localeCompare"]); ["String.prototype.localeCompare"]);
} }
if (%_ArgumentsLength() === 0) return 0;
return %StringLocaleCompare(TO_STRING_INLINE(this), return %StringLocaleCompare(TO_STRING_INLINE(this),
TO_STRING_INLINE(other)); TO_STRING_INLINE(other));
} }
......
...@@ -41,10 +41,6 @@ def FAIL_OK = FAIL, OKAY ...@@ -41,10 +41,6 @@ def FAIL_OK = FAIL, OKAY
# V8 Bug: http://code.google.com/p/v8/issues/detail?id=2413 # V8 Bug: http://code.google.com/p/v8/issues/detail?id=2413
15.5.4.9_CE: FAIL 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 ##################### ##################### DELIBERATE INCOMPATIBILITIES #####################
# This tests precision of Math functions. The implementation for those # This tests precision of Math functions. The implementation for those
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment