Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit e2eb46f

Browse files
committed
[[ Ext ]] Ensure load if library deletes stacks on failure
The `revInternal__LoadIfLibrary` handler depends on `send` throwing an error if the handler is not found, however, a recent change meant that the `revAvailableHanlders` was used to check if the stack had library initialization handlers so `send` was sending empty which does not throw an error. See Bug 20689
1 parent 01e1ca8 commit e2eb46f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Toolset/libraries/revinitialisationlibrary.livecodescript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ command revInternal__LoadIfLibrary pLibrary
6565
// TODO: Remove legacy message name
6666
else if tAvailable contains "revLoadLibrary" then
6767
put "revLoadLibrary" into tMsg
68+
else
69+
throw "not a library"
6870
end if
6971
send tMsg to stack pLibrary
7072
local tStackName

0 commit comments

Comments
 (0)