Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Calling a userdata object (not Instance) results in an unexpected error with Util #16

Closed
TheLegendarySpark opened this issue Jun 22, 2022 · 2 comments · Fixed by #17
Closed
Labels
bug Something isn't working

Comments

@TheLegendarySpark
Copy link

TheLegendarySpark commented Jun 22, 2022

Describe the bug
Calling a user data object with the metamethod __call fails to check whether it's a C function, results in an error using debug.info with argument 1.

To Reproduce
Steps to reproduce the behavior:

  1. Create a module script that returns a user data object
  2. Require the module and attempt to call the returned user data
  3. Expect to see a bug similar to this
    Bug image

Expected behavior
Calling it must not encounter an issue with user data

Version information:

  • H6x version: v2.1.0
  • Beta features enabled: Parallel Lua
@TheLegendarySpark TheLegendarySpark added the bug Something isn't working label Jun 22, 2022
@TheLegendarySpark TheLegendarySpark changed the title Calling a userdata object (not Instance) results in an unexpected error with Util [Critical] Calling a userdata object (not Instance) results in an unexpected error with Util Jun 22, 2022
@Hexcede
Copy link
Owner

Hexcede commented Jun 23, 2022

Thank you for the report, I'll make sure to fix this soon.

@Hexcede
Copy link
Owner

Hexcede commented Jun 24, 2022

This should be solved now in 2.1.1. If you encounter any more issues, definitely let me know and feel free to reopen this issue. 😄

@Hexcede Hexcede changed the title [Critical] Calling a userdata object (not Instance) results in an unexpected error with Util Calling a userdata object (not Instance) results in an unexpected error with Util Jun 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants