recursive_inline.js 514 B

1234567891011121314
  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. var obj = {get x(){return 2;}};
  6. function foo(y)
  7. {
  8. if(y == 0) return;
  9. obj.x;
  10. foo(--y);
  11. }
  12. foo(4);
  13. WScript.Echo("PASSED");