bug56026_nested.js 995 B

1234567891011121314151617181920212223242526272829
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. // Tests that bug 56025 is fixed in the nested funcexprscope case.
  6. // http://bugcheck/bugs/WindowsBlueBugs/56026
  7. try {
  8. (function TestFunc() {
  9. var a;
  10. (function outer() {
  11. (function inner() { a; })();
  12. with ({}) {
  13. (function innerOuter() {
  14. (function innerInner() { a; })();
  15. with ({}) {
  16. outer();
  17. }
  18. })();
  19. }
  20. })();
  21. })();
  22. }
  23. catch (ex) {
  24. if (ex.message == "Out of stack space") {
  25. WScript.Echo("PASSED");
  26. }
  27. }