Re: SCXML Test 354 uses datamodel-specific <content>?

Le 20 jun 2014 à 16:34, Jim Barnett <1jhbarnett@gmail.com> a écrit :

> We have had more problems with quotes than anything else in the tests - putting them in, taking them out, doubling them, undoubling them.  Does anyone else have an opinion on what to do with these tests?

For the ECMAScript datamodel, we agreed that inline content should first be parsed as JSON or XML. And if that fails, as a string. Platforms may, if I recall, choose other fallbacks or detect other types right away.

It means that, by default, foo (without double quotes) fails to parse as JSON or XML and so it's parsed as a string, not executable code.

I don't know if it's desirable to have JSON parsing by default in a Lua datamodel. If not, Gavin, I think it's up to you to propose a behavior for inline content in your datamodel and write a test for it if you'd like. The ECMAScript datamodel being optional, you have no obligation to pass the original test.

			David

Received on Friday, 20 June 2014 15:53:33 UTC