> 10. The addsGlobals flag must suppress the test runner from failing
> any test that adds a property to the global object. Otherwise, the test
> runner may make this check to spot likely missing var declarations.
In some environments it will be sufficient that the global object is
frozen or inaccessible, thus missing vars will throw errors
automatically. In other cases, there may be non-standard ways of
getting the global object. But the wording here is very careful to
avoid the issue and leave that to implementors since it does not
require implementations of the test runner module to verify missing
var, it only requires the test runner to suppress deliberate checking
for test cases marked with the "addsGlobals" flag.
In any case, I'd like to close this issue with a quick show of hands:
A. remove point 10
B. revise 10 to require globals to be checked regardless
C. revise 10 to disallow global checks
D. leave 10 as it stands now
Kris Kowal
My comments in my previous mail were going to be:
point 10) (addGlobal) seems ... ill specified. When would this check
happen? Also the wording implies its should do this check by default?
In flusspferd you get a warning if you assign to something without
declaring a var for it. Also this sort of check isn't easy to
implement. I guess its a 'may' so that I can just ignore this
behaviour :)
I'm against B quite strongly, since flusspferd has warnings (could be
errors) for this.
A: +1, D: +0.1 (we operate STV right?)
I'm against B quite strongly, since flusspferd has warnings (could be
errors) for this.
A: +1, D: +0.1 (we operate STV right?)
I've removed mention of addsGlobals.
Kris Kowal