Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

crossrealm_b source realm

Variables 3

var Fooer, FooerGetter, FooerGetterBuilder

1var (
2	Fooer              = &fooer{s: "A"}
3	FooerGetter        = func() crossrealm.Fooer { return Fooer }
4	FooerGetterBuilder = func() crossrealm.FooerGetter { return func() crossrealm.Fooer { return Fooer } }
5)
source

Functions 7

func TryBankerOnPrevious

crossing Action
1func TryBankerOnPrevious(cur realm)
source

TryBankerOnPrevious attempts to construct a RealmSend banker over the CALLER via cur.Previous() (which is NOT IsCurrent). NewBanker must reject it — otherwise a callee could set pkgAddr to the caller's address and drain it through the pkgAddr==from gate. Regression guard for the IsCurrent check in NewBanker.

func TrySubOn

Action
1func TrySubOn(_ int, rlm realm)
source

TrySubOn attempts to mint a sub-realm token on a passed-in realm value. Non-crossing (`_ int` discriminator), so the caller's cur remains the topmost crossing cur — but borrow rule #1 runs this body with m.Realm = crossrealm_b, so rlm.Sub must reject: a foreign realm must not mint sub-identities in the caller's namespace.

Imports 3

Source Files 2