Note: There are a few cases of duplicates in user autocompletion which are being worked on.

String.localeCompare - passing 2 arguments results in incorrect ArgumentError

NEW
Unassigned

Status

Tamarin
Virtual Machine
9 years ago
6 years ago

People

(Reporter: Jeff Dyer, Unassigned)

Tracking

(Blocks: 1 bug)

unspecified
Future
x86
All
Bug Flags:
flashplayer-qrb +
flashplayer-triage +

Details

(Reporter)

Description

9 years ago
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

Updated

9 years ago
Blocks: 479769

Updated

8 years ago
Target Milestone: --- → Future

Comment 1

8 years ago
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()
Flags: flashplayer-triage+

Updated

6 years ago
Flags: flashplayer-qrb+
You need to log in before you can comment on or make changes to this bug.