View Issue Details

IDProjectCategoryView StatusLast Update
0025707Runner[All Projects] GeneralPublic2017-03-17 11:22
ReporterricardocostazaAssigned ToRussell Kay 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformHTML5 (WebGL on)OSWindowsOS Version10
Summary0025707: HTML5: If you send an argument to a function, you can't reach the argument when in other object context
DescriptionHTML5 runner bug. If you send an argument to a function, you can't reach it inside other object context.

E.g.:
myFunc() {

   with (instance_create(0,0,object1)) {
       arg = other.argument0;
       show_message("argument is: " + string(arg));
   }

}

The code above shows the correct argument in Windows, but shows "undefined" in HTML5.
Steps To ReproduceCheck the example project for clarification.
1.4 Found In1.99.525
2.x Runtime Found In
2.x Runtime Verified In

Activities

ricardocostaza

2017-02-19 23:40

Updater  

Function_Argument_Bug.gmz (244,006 bytes)

Russell Kay

2017-02-23 15:31

Manager   ~0051738

Fixed in gitlab - e44b37e - the use of other.argument0 is actually incorrect compiler has been updated to error whenever a global builtin variable (or function) is used like an instance variable (as this is wrong)

Ross Manthorp

2017-03-17 11:22

Adminstrator   ~0052283

Verified. Closing.