W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2014

Re: The Candidate Recommendation draft of SCXML has been published - call for implementation reports

From: David Junger <tffy@free.fr>
Date: Mon, 17 Mar 2014 18:11:30 +0100
Message-Id: <FC02F780-C498-480A-AF36-86E16518DFDD@free.fr>
To: Voice Public List <www-voice@w3.org>
Le 17 mar 2014 à 16:25, Jim Barnett <jim.barnett@genesys.com> a écrit :

> Test286, etc.  The relevant language in the spec is in C.2.7: " When evaluating an <assign> element in the ECMAScript data model, the SCXML Processor MUST replace the existing value at 'location' with the value produced by evaluating 'expr'. If it is unable to do so (for example, if the <assign> element attempts to assign to a read-only attribute), it MUST place the error error.execution on the internal event queue." 
> In PySCXML, test286 passes as written.  Does this mean that Johan's implementation specifically tests for an undefined var and raises an error, or is there a difference in his ECMAScript implementation?  

We arrived at the current wording some time ago after I raised the issue.

It is quite fundamental in ECMAScript, in fact the object-oriented part of it would be nearly impossible without assignments to undeclared properties.
I suppose Johan implemented the behavior described in earlier drafts and hasn't updated that part of PySCXML since the change.

Received on Monday, 17 March 2014 17:12:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:04:01 UTC