recursiveCallbacks.js 534 B

123456789101112131415161718
  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. function r(t) {
  6. if (!(this instanceof r)) {
  7. return new r(t);
  8. }
  9. }
  10. function foo() {}
  11. r(foo);
  12. r(foo);
  13. r(foo);
  14. WScript.Echo("Passed");