hscript icon indicating copy to clipboard operation
hscript copied to clipboard

Null function reference for IntIterator

Open EliteMasterEric opened this issue 2 years ago • 5 comments

https://github.com/HaxeFoundation/hscript/blob/891a085f2b75acbf4700cfdffa80fb0b9532d325/hscript/Interp.hx#L627

image

image

I was able to resolve the issue, will make a PR now.

EliteMasterEric avatar Feb 07 '22 06:02 EliteMasterEric

On which platform does that occurs ?

ncannasse avatar Feb 07 '22 06:02 ncannasse

This was occurring on the Windows/CPP platform.

If it helps, the project where this issue was occurring is a public sample (sadly this isn't great as a minimal reproduction, as the Polymod library is loading the script, not the project itself): https://github.com/larsiusprime/polymod/tree/v1.4.2/samples/openfl_hscript

EliteMasterEric avatar Feb 07 '22 07:02 EliteMasterEric

I guess then the fix should use #if( cpp || ... ) in the test before

ncannasse avatar Feb 07 '22 20:02 ncannasse

@ncannasse Any update on merging this change? This still consistently causes problems when not using my fork.

EliteMasterEric avatar Mar 07 '22 00:03 EliteMasterEric

Please update the PR according to my previous comment

ncannasse avatar Mar 07 '22 16:03 ncannasse