Re: April CCXML: variable not declared in 6_3

Petr,

If you do not have "STRICT" as part of your javascript engine 
configuration this test will work
as "loose" javascript does not require variables to be declared before 
assignment.

If CCXML is going to require "STRICT" javascript I suggest that be 
stated clearly in the recommendation.

Note there are some tricks you can do (that I have discussed before) to 
enforce/pass CCXML's declaration
rules while not inside a <script> tag if you are running "LOOSE".

I don't feel strongly one way or the other. However - if you accept that 
most javascript usage worldwide is
inside people's web browsers than I can tell you almost none of those 
are "STRICT". If we mandate
STRICT there is a potential for a lot of existing script to just not 
work inside CCXML, perhaps leading to
a lower adoption rate of CCXML by a frustrated community.

Regards,
Chris


Petr Kuba wrote:
> Hello www-voice,
>
> In 6_3.txml, the 'result' variable is not declared in the 
> extractCurrentDir() function.  I assume that it should be.
>
> Thanks,
> Petr
>


-- 
Chris Davis
Interact Incorporated R&D
512-502-9969x117

Received on Thursday, 27 May 2010 17:38:29 UTC