GDScript::_get_gdscript_from_variant()
The crash would happen, theoretically, when getting the type of a invalid variant.