Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix null function reference for IntIterator #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EliteMasterEric
Copy link

Fixes #114, tested and found no difference in the behavior of scripts.

@MAJigsaw77
Copy link

Why hasn't this been pushed yet?

@kLabz
Copy link
Contributor

kLabz commented Feb 8, 2025

Why hasn't this been pushed yet?

Because requested change hasn't been made.

@EliteMasterEric
Copy link
Author

I didn't even realize there was a requested change on this since it was posted on the issue and not the PR! Will fix this now.

@EliteMasterEric EliteMasterEric force-pushed the fix-null-function-intiterator branch from a1b7f74 to 2e59640 Compare February 14, 2025 20:30
@EliteMasterEric
Copy link
Author

Made the desired change and rebased, this should be good to go now.

@@ -562,7 +562,8 @@ class Interp {
return (v : Array<Dynamic>).iterator();
if( v.iterator != null ) v = v.iterator();
#else
try v = v.iterator() catch( e : Dynamic ) {};
#if (cpp) if ( v.iterator != null ) #end
try v = v.iterator() catch( e : Dynamic ) {};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the try/catch necessary on cpp after the nullcheck? If not, this could go with the flash/php #if above

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure, I left it on to be safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Null function reference for IntIterator
3 participants