TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
102 stars 32 forks source link

Problem in JS when a transition has multiple events #68

Closed brice-morin closed 9 years ago

brice-morin commented 9 years ago

The following ThingML code:

transition switch_on -> LedOn 
            event Led?led_on 
            event Led?led_toggle

Will produce erroneous JS code, where the transitions are duplicated (4 in total instead of two), leading to a runtime exception as the behavior is not deterministic.