Propagate actor name in a during...spawn

This commit is contained in:
Tony Garnock-Jones 2018-11-03 22:29:06 +00:00
parent 1dbfe110de
commit 4a6d3a110a
1 changed files with 2 additions and 1 deletions

View File

@ -423,7 +423,7 @@ export default declare((api, options) => {
stop on asserted INSTID;
}
}
spawn {
spawn named NAME {
assert INSTID;
stop on retracted SYNDICATE.Observe(INSTID);
BODY
@ -431,6 +431,7 @@ export default declare((api, options) => {
}`)({
PATTERN1: node.pattern,
PATTERN2: instantiatePatternToPattern(state, path.get('pattern')),
NAME: node.body.name || t.nullLiteral(),
BODY: node.body.body, // the body of the SPAWN, which is itself the body of `node`
SYNDICATE: state.SyndicateID,
IDID: idId,