[Webkit-unassigned] [Bug 11545] Disable the old testcases do not follow the ECMA-262v3 specification.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 10 06:07:51 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=11545





------- Comment #3 from digdog at macports.org  2006-11-10 06:07 PDT -------
File:///WebKit/JavaScriptCore/tests/mozilla/js1_2/String/concat.js has 4 tests:

aString.concat([]);  // js1.2 expected: test string[]
aString.concat([1,2,3]);  // js1.2 expected: test string[1,2,3]
'abcde'.concat([]);  // js1.2 expected: abcde[]
'abcde'.concat([1,2,3]); // js1.2 expected: abcde[1,2,3]

According to ECMA 15.5.4.6, the argument of concat should send to ToString and
convert into a string value (not String object). So these arguments will be
convert into '' and '1,2,3' under ECMA-262v3, not the js1.2 expected '[]' and
'[1,2,3]'

The correct results should be:
test string
test string1,2,3
abcde
abcde1,2,3


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list