bug56026_minimal.js 774 B

12345678910111213141516171819202122
  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 minimal repro case.
  6. // http://bugcheck/bugs/WindowsBlueBugs/56026
  7. try {
  8. (function TestFunc() {
  9. var a;
  10. (function outer() {
  11. (function inner() { a; })();
  12. with ({}) { outer(); }
  13. })();
  14. })();
  15. }
  16. catch (ex) {
  17. if (ex.message == "Out of stack space") {
  18. WScript.Echo("PASSED");
  19. }
  20. }