closes #18: actor data now behind private symbol

This commit is contained in:
2025-06-06 10:07:56 -05:00
parent d0138a6c23
commit c570de7f41
9 changed files with 60 additions and 22 deletions

View File

@@ -1,8 +1,7 @@
(function engine() {
globalThis.cell = prosperon
cell.DOC = Symbol()
var ACTORDATA = cell.hidden.ACTORSYM
ACTORDATA = '__ACTORDATA__' // TODO: implement the actual actorsym
var ACTORDATA = cell.hidden.actorsym
var SYSYM = '__SYSTEM__'
var ENETSERVICE = 0.1
@@ -112,7 +111,6 @@ function disrupt(err)
actor_mod.on_exception(disrupt)
var js = use_embed('js')
var io = use_embed('io')
if (!io.exists('.cell')) {
@@ -596,7 +594,7 @@ function actor_send(actor, message) {
}
return
}
log.system(`Unable to send message to actor ${json.encode(actor)}`)
log.system(`Unable to send message to actor ${json.encode(actor[ACTORDATA])}`)
}
// Holds all messages queued during the current turn.