Last Comment Bug 478789 - String.localeCompare - passing 2 arguments results in incorrect ArgumentError
: String.localeCompare - passing 2 arguments results in incorrect ArgumentError
Status: NEW
:
Product: Tamarin
Classification: Components
Component: Virtual Machine (show other bugs)
: unspecified
: x86 All
: -- normal with 1 vote (vote)
: Future
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on:
Blocks: AS3_Builtins
  Show dependency treegraph
 
Reported: 2009-02-16 15:10 PST by Jeff Dyer
Modified: 2011-09-10 07:42 PDT (History)
3 users (show)
dansmith: flashplayer‑qrb+
brbaker: flashplayer‑triage+
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description Jeff Dyer 2009-02-16 15:10:19 PST
code:
x = 'a';
x.localeCompare('a','b');

Compile with -ES3 option.

Actual Results:
ArgumentError: Error #1063: Argument count mismatch on (). Expected 0, got 2.
        at global$init()

Expected Results: 0 (second arg ignored - which is the same behavior as using -AS3) or at least "Expected 1, got 2"

Workaround: none
        
        
Transferred Comments:

BugDB Migration - Mon Jun 04 12:33:01 CDT 2007
[cpeyer 12/14/06] Entered Bug.
[cpeyer 12/14/06] Not sure if this is a compiler or avm issue.  Let me know if I should transfer to bugzilla.

JIRA Migration Admin - Mon Jun 04 12:33:01 CDT 2007
Milestone ID = 1378
Milestone = FP 10 - Code Complete
Build ID = 23495
Build = AVMPLUS_1_0_0_d693
Fix Build ID = null
Fix Build = null


JIRA Migration Admin - Mon Jun 04 12:33:01 CDT 2007
Move from BugDB issue number 193482

Trevor Baker - Tue Jan 27 16:38:42 CST 2009
send to internal review for prioritization

Jeff Dyer - Mon Feb 02 15:37:50 CST 2009
Transfer to Bugzilla.

Jd


This bug transferred from: http://bugs.adobe.com/jira/browse/ASC-2296
Comment 1 Brent Baker 2009-10-07 10:24:50 PDT
Current behavior of this issue using asc 9149 and tamarin-redux 2680, abc compiled with -AS3

$ java -jar $ASC -import $BUILTINABC -import $SHELLABC -AS3 test.as
$ $AVM test.abc
ArgumentError: Error #1063: Argument count mismatch on String/http://adobe.com/AS3/2006/builtin::localeCompare(). Expected 0, got 2.
        at global$init()

Note You need to log in before you can comment on or make changes to this bug.