bug56026.js 909 B

123456789101112131415161718192021222324252627
  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.
  6. // http://bugcheck/bugs/WindowsBlueBugs/56026
  7. try {
  8. (function () {
  9. with ({}) with ({}) with ({}) {
  10. for (eval("a = 0");
  11. a < 1;
  12. function x() {
  13. with ({}) with ({}) with ({}) (function y() { new Function })();
  14. with ({}) x();
  15. } ()
  16. ) {
  17. }
  18. }
  19. })();
  20. }
  21. catch (ex) {
  22. if (ex.message == "Out of stack space") {
  23. WScript.Echo("PASSED");
  24. }
  25. }