compat-table
compat-table copied to clipboard
ES5: New test for strict mode scope
It would be nice to know if all implementations are implementing strict mode scoping as expected. Maybe we could add a test to check this? Perhaps something like...
foo = 123; // this would cause an error if strict mode leaked out of scope
function bar(quux) {
'use strict';
if (quux !== 123) {
return false;
}
return true;
}
return bar(foo);
Strict mode tests are under es5 tab
I know. I was not able to identify one that would test the scope. Do you think it exist already?
related #575