SCION-CORE
SCION-CORE copied to clipboard
A minimal implementation of Statecharts in portable, embeddable JavaScript. Development moved to gitlab: https://gitlab.com/scion-scxml/core
Per 3.2 and 3.2.1 of scxml, the initial attribute is an IDREFS - one of more state ids. The code that traverses the document, detects initial attributes and connects them...
3.1.3 (Parallel States) of https://www.w3.org/TR/scxml decribes `done.state.id` completion events. There is additional detail in 3.1.4 (Initial, Final, and History States) as it pertains to compound states. Several of the w3c...
Per mainEventLoop described in [scxmlAlgo], macrostepDone remains false until both enabledTransitions.isEmpty and internalQueue.isEmpty. The impl at [performBigStep] and [performBigStepAsync] only checks the former condition. Repro: ``` ``` [scxmlAlgo] https://www.w3.org/TR/scxml/#AlgorithmforSCXMLInterpretation [performBigStep]:...
The state machine below does not work. We may however note that the bug is only present at the first time we re-enter A via a self-transition. The second time...
Maybe not a bug, since this feature is not documented anyway (?). :-) When calling `sc = new scxml.scion.Statechart(fnModel, {sessionId: 'anything'});` the `_sessionid` is not set to `anything` inside the...
var sm = new scion.Statechart({ states: [ { id: 'A', transitions: [ { event: 't2', target: ‘A’ // Using 'History' here has same effect... } ], states: [ { id:...
This would run sauce labs tests only in latest browsers.
`eventsToAddToInnerQueue` is created on line 728. AFAIK, nothing is ever added to the set before we get to 801. [1] https://github.com/jbeard4/SCION-CORE/blob/07e2a1e9dc7d2437933f97cb916e9f098647b5b7/lib/scion.js#L728 [2] https://github.com/jbeard4/SCION-CORE/blob/07e2a1e9dc7d2437933f97cb916e9f098647b5b7/lib/scion.js#L801