zephyrer / executejs

Automatically exported from code.google.com/p/executejs
0 stars 0 forks source link

Array.sort() return wrong result #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. with new profile
2. Open Execute JS 
3. [ 'window', 'win'].sort() in the Upper-Left pane
4. Click "Execute" button

What is the expected output? What do you see instead?
[Actual] 
window,window

[Expected] 
win,window

What version of the product are you using? On what operating system?
Execute JS 0.2.2.1
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1pre)
Gecko/20090710 Firefox/3.5.1pre ID:20090710043006

Please provide any additional information below.
Evaluate in the Error Console, i get as expected.

Original issue reported on code.google.com by alice0...@gmail.com on 11 Jul 2009 at 8:56

GoogleCodeExporter commented 9 years ago
In Exec JS 0.2.4, FF 3.6.16

alert("win");

the alert dialog shows "window". I think it's relevant.

Original comment by wuxuan.e...@gmail.com on 30 Mar 2011 at 9:08