These are the bugs found while the API descriptors were written. Each
was checked against Blizzard's generated documentation, and the ones
marked "probed" against a live retail client.
Return values
- C_Item.GetItemData: allowableClass and allowableRace are signed in
the ItemStats record, where -1 means all. They were read as unsigned
and came out as 4294967295.
- C_DateAndTime.CompareCalendarTime: the sign was reversed. It now
returns 1 when the first time is earlier (probed).
- CopyToClipboard: returns 0 when the clipboard could not be written.
It returned the length even then.
- C_TaxiMap: position is a vector, so position:GetXY() works.
Arguments
- UnitIsAFK / UnitIsDND: a non-string argument raises the usage error,
as the sibling unit functions do. It returned false.
- UnitInRange: the "player" check ignores case, as token resolution
does. "Player" ran a real range check.
- C_Timer.NewTimer / NewTicker: the callback receives its handle. The
handle is pinned in the registry beside the callback and released
with it. C_Timer.After still passes nothing.
C_EncodingUtil
- CompressString and DecompressString default to Deflate. Decompress
no longer detects Zlib or Gzip when the method is omitted.
- CompressString takes Enum.CompressionLevel (new enum), mapped to
zlib levels -1, 1 and 9. A raw zlib level made
Enum.CompressionLevel.Default (0) store the data uncompressed.
- Enum.Base64Variant.UrlSafe is renamed StandardUrlSafe, and its
encoded output is padded (probed: "a" gives "YQ==").
- SerializeJSON / SerializeCBOR raise "attempted to serialize a
<type> value" for a function or userdata (probed). They returned
nothing. The new options.ignoreSerializationErrors writes such a
value as null / undefined (probed). The error is raised after the
encode buffers are released, because a Lua error does not unwind
C++ frames.
- SerializeCBOR writes Lua strings as byte strings (probed: the key
"a" is 41 61). The decoder already reads both kinds.
Events
- AUCTION_MULTISELL_START passes the number of auctions.
- LOSS_OF_CONTROL_ADDED passes "player" before the effect index.
Offsets
- Script_UnitPowerType (0x00517940, slot 31 of the unit registration
table) and the QuestInfo.dbc records/count globals (0x00C0D9CC /
0x00C0D9D0) move from local constants in unit/Power.cpp and
quest/Details.cpp to Offsets.h.