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
@@ -129,9 +129,7 @@ function Map.__newindex(table_, key, value)
end
local function coerceToMap(mapLike: Map<any, any> | Table<any, any>): Map<any, any>
- return instanceOf(mapLike, Map)- and mapLike -- ROBLOX: order is preservered- or Map.new(Object.entries(mapLike)) -- ROBLOX: order is not preserved+ return instanceOf(mapLike, Map) and mapLike -- ROBLOX: order is preservered or Map.new(Object.entries(mapLike)) -- ROBLOX: order is not preserved
end
This is much worse, because the code parses and passes selene correctly, but then unit tests fail. More subtle, and therefore more dangeous to use StyLua in a codebase with <92% code coverage.
Here's a diff after running latest master, which makes the codebase in question no longer parse:
The text was updated successfully, but these errors were encountered: