failfast.js 561 B

1234567891011121314151617
  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 empty() { }
  6. WScript.Attach(empty)
  7. WScript.Detach(empty)
  8. for (var i = 0; i < 10; i++)
  9. {
  10. function emptyn() { }
  11. WScript.Attach(emptyn)
  12. WScript.Detach(emptyn)
  13. }
  14. print("PASS")