You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure about the logic with the if statement at line 1095 but it crashes when is_validated is true because temporaries won't be populated and it will give index crash. And is_validated will only gonna be true if IS_BUILTIN_TYPE() at line 1086 returns true.
In IS_BUILTIN_TYPE(), last check returns false for non-null values because m_type is always Variant.NIL which comes from Variant::get_utility_function_argument_type() function. And this function checks the argument type for a function by looking if it's registered or not, I didn't see any call to register 'typeof' function. So it always returns NIL by default and then it gives different result for null or non-null values which are the argument here.
Tested versions
System information
Kubuntu 23.10
Issue description
godot/modules/gdscript/gdscript_compiler.cpp
Lines 1896 to 1904 in b4e2a24
godot/modules/gdscript/gdscript_byte_codegen.cpp
Lines 1095 to 1101 in b4e2a24
Steps to reproduce
Save the script above.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: