View Issue Details

IDProjectCategoryView StatusLast Update
0030050RunnerHTML5Public2018-10-25 15:57
ReporterYellowAfterlifeAssigned ToMike Dailly 
PriorityHighSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformHTML5OSWindows 10 ProOS Version>=1703
Product Version2.1.5 
Target VersionFixed in Version2.2.1 
Summary0030050: HTML5: array_equals() always returns true
DescriptionCode:
var a, b;
a = [2, 1];
b = [2, 1];
show_debug_message(string(a) + " == " + string(b) + "? " + string(array_equals(a, b)));
a = [1, 2];
b = [2, 3, 4];
show_debug_message(string(a) + " == " + string(b) + "? " + string(array_equals(a, b)));
a = []; a[1, 0] = 1;
b = []; b[1, 0] = 1;
show_debug_message(string(a) + " == " + string(b) + "? " + string(array_equals(a, b)));
a = []; a[1, 2] = 3;
b = []; b[1, 2] = 4;
show_debug_message(string(a) + " == " + string(b) + "? " + string(array_equals(a, b)));
a = []; a[2, 3] = 4;
b = []; b[2, 3] = 4;
show_debug_message(string(a) + " == " + string(b) + "? " + string(array_equals(a, b)));
a = []; a[3, 3] = 5;
b = []; b[3, 1] = 4;
show_debug_message(string(a) + " == " + string(b) + "? " + string(array_equals(a, b)));


Windows:
{ { 2,1 }, } == { { 2,1 }, }? 1
{ { 1,2 }, } == { { 2,3,4 }, }? 0
{ { }, { 1 }, } == { { }, { 1 }, }? 1
{ { }, { 0,0,3 }, } == { { }, { 0,0,4 }, }? 0
{ { }, { }, { 0,0,0,4 }, } == { { }, { }, { 0,0,0,4 }, }? 1
{ { }, { }, { }, { 0,0,0,5 }, } == { { }, { }, { }, { 0,4 }, }? 0

HTML5:
{2,1} == {2,1}? 1
{1,2} == {2,3,4}? 1
{undefined,{1}} == {undefined,{1}}? 1
{undefined,{undefined,undefined,3}} == {undefined,{undefined,undefined,4}}? 1
{undefined,undefined,{undefined,undefined,undefined,4}} == {undefined,undefined,{undefined,undefined,undefined,4}}? 1
{undefined,undefined,undefined,{undefined,undefined,undefined,5}} == {undefined,undefined,undefined,{undefined,4}}? 1
Tagsfunctions, html5
1.4 Found In
2.x Runtime Found In9.9.1.1197
2.x Runtime Verified In2.2.1.268

Activities

YellowAfterlife

2018-09-28 19:16

Developer  

a_bug.yyz (49,145 bytes)

Dan

2018-10-01 09:18

Adminstrator   ~0061679

Reproduces in 2.2.0, which means 2.1.5 at least also had this issue.

Mike Dailly

2018-10-02 14:25

Developer   ~0061698

Fixed in red