-
Notifications
You must be signed in to change notification settings - Fork 108
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
base: master
Are you sure you want to change the base?
Fix null function reference for IntIterator #115
Conversation
Why hasn't this been pushed yet? |
Because requested change hasn't been made. |
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. |
a1b7f74
to
2e59640
Compare
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 ) {}; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Fixes #114, tested and found no difference in the behavior of scripts.