1package core 2 3func assertIsRlmCurrent(_ int, rlm realm) { 4 if !rlm.IsCurrent() { 5 panic(ErrSpoofedRealm) 6 } 7} 8 9func assertIsProxyRealm(_ int, rlm realm) { 10 if rlm.PkgPath() != proxyPkgPath { 11 panic(ErrNotProxyRealm) 12 } 13}