compat-table icon indicating copy to clipboard operation
compat-table copied to clipboard

ES5: New test for strict mode scope

Open cyberixae opened this issue 9 years ago • 3 comments

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);

cyberixae avatar Sep 07 '16 11:09 cyberixae

Strict mode tests are under es5 tab

chicoxyzzy avatar Sep 07 '16 12:09 chicoxyzzy

I know. I was not able to identify one that would test the scope. Do you think it exist already?

cyberixae avatar Sep 07 '16 12:09 cyberixae

related #575

chicoxyzzy avatar Nov 22 '16 12:11 chicoxyzzy