debugstack=debug.traceback strmatch=string.match;(loadfile("\046\046\047\076\105\098\083\116\117\098\046\108\117\097"))()local c=newproxy()assert(not pcall(LibStub.NewLibrary,LibStub,c,1))local y,K=pcall(LibStub.GetLibrary,c,true)assert(not y or not K)assert(not pcall(LibStub.NewLibrary,LibStub,"\083\111\109\101\116\104\105\110\103","\078\111 \110\117\109\098\101\114 \105\110 \104\101\114\101"))assert(not LibStub:GetLibrary("\083\111\109\101\116\104\105\110\103",true))
debugstack = debug.traceback
strmatch = string.match

loadfile("../LibStub.lua")()

local proxy = newproxy() -- non-string

assert(not pcall(LibStub.NewLibrary, LibStub, proxy, 1)) -- should error, proxy is not a string, it's userdata
local success, ret = pcall(LibStub.GetLibrary, proxy, true)
assert(not success or not ret) -- either error because proxy is not a string or because it's not actually registered.

assert(not pcall(LibStub.NewLibrary, LibStub, "Something", "No number in here")) -- should error, minor has no string in it.

assert(not LibStub:GetLibrary("Something", true)) -- shouldn't've created it from the above statement