krishpatel2067 / ListLib

ListLib is a powerful table wrapper capable of adding immense functionality to regular Luau tables. You can perform operations, slice, reverse, replace, and more with ease!
https://thecarbyneuniverse.github.io/ListLib/
1 stars 0 forks source link

getfenv disables luau optimisations #1

Open Ewanophobia opened 3 years ago

Ewanophobia commented 3 years ago

title is what it says, though i could be wrong because i am not sure if it was fixed or not

TheCarbyneUniverse commented 3 years ago

title is what it says, though i could be wrong because i am not sure if it was fixed or not

Thank you for reporting this!

The purpose of getfenv is to check if certain function calls are from internal scripts otherwise they can't be used and to replace built-in functions such as typeof, pairs, and ipairs with improved counterparts that respect the two new datatypes. However, the first use case is optional, which I'll remove (not any use to have such security in modules anyways) and I'll have a function return the better counterparts of the built-ins and you can set them as local variables in your script. No getfenv used then.

This will be pushed out in the next update!