bailout.js 565 B

1234567891011121314151617181920
  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 a =0;
  6. function func()
  7. {
  8. // injected bailout point #1
  9. return 3;
  10. }
  11. // injected bailout point #2
  12. for (var i = 0; i < 10; i++)
  13. {
  14. a += func();
  15. }
  16. WScript.Echo(a);