Ate Douma created SCXML-273:
-------------------------------
Summary: Javascript engine (Nashorn) doesn't fail on accessing
non-existing property, by default
Key: SCXML-273
URL: https://issues.apache.org/jira/browse/SCXML-273
Project: Commons SCXML
Issue Type: Bug
Affects Versions: 2.0
Reporter: Ate Douma
Priority: Minor
W3C [SCXML IRP|https://www.w3.org/Voice/2013/scxml-irp/] test
[307|https://www.w3.org/Voice/2013/scxml-irp/307/test307.txml] fails for the
ecma datamodel, because, *by default*, the Javascript engine doesn't fail on
referencing a missing property.
While it is possible to 'fix' this, but using the Nashorn Script API extension
to add a \_\_noSuchProperty\_\_ hook to each and every object in the script
context, see [Nashorn
Extensions|https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions],
this doesn't seems a practical or efficiently implementable solution.
NB: the test307 *seems* to pass when executed for the ecma datamodel, but this
is explicitly a manual test, and the log output shows it is really failing.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)