View Issue Details

IDProjectCategoryView StatusLast Update
0031248RunnerHTML5Public2019-08-16 12:11
ReporterYellowAfterlifeAssigned ToRussell Kay 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionWon't Fix 
PlatformWindowsOSWindows 10 ProOS Version>=18362
Product Version2.2.3 
Target VersionFixed in Version 
Summary0031248: HTML5: array_get is forbidden on 2d arrays although it is allowed on native
DescriptionGML:
var q = [1];
q[1, 0] = 0;
show_debug_message(q);
show_debug_message("q[0] = " + string(q[0]));
show_debug_message("array_get(q, 0) = " + string(array_get(q, 0)));


Windows:
{ { 1 }, { 0 },  }
q[0] = 1
array_get(q, 0) = 1


HTML5:
{1,{0}}
q[0] = 1
Error: array_get() : argument 0 must be a 1D array
--------------------------------------------------------------------
Additional InformationUnfortunately this oddish bit of behaviour is utilized more commonly than it may seem
Tagsfunctions, html5
1.4 Found In
2.x Runtime Found In9.9.1.1520
2.x Runtime Verified In

Activities

YellowAfterlife

2019-08-06 21:41

Developer  

html5_array_get_on_2d_array.yyz (61,149 bytes)

Russell Kay

2019-08-07 09:21

Manager   ~0064531

1D and 2D arrays are distinct and HTML5 is correct, the upcoming changes in Q4 will mean the code doing this will not work properly

Dan

2019-08-16 12:11

Adminstrator   ~0064556

Closing as per the above comment.