bug56026_minimalWithProperties.js 891 B

1234567891011121314151617181920212223242526
  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 with "with" object property usage.
  6. // http://bugcheck/bugs/WindowsBlueBugs/56026
  7. try {
  8. (function TestFunc() {
  9. var a;
  10. (function outer() {
  11. (function inner() { a; })();
  12. var o = { p1: 1 }
  13. with (o) {
  14. outer();
  15. p1++;
  16. }
  17. })();
  18. })();
  19. }
  20. catch (ex) {
  21. if (ex.message == "Out of stack space") {
  22. WScript.Echo("PASSED");
  23. }
  24. }