neg_index.js 603 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. //reduced switches: -maxsimplejitruncount:1 -maxinterpretcount:1
  6. var zibhbj;
  7. for (i=0; i<10000; i++) {
  8. zibhbj = 'u{3402e}'[-1];
  9. }
  10. if (zibhbj === undefined)
  11. {
  12. WScript.Echo("Passed");
  13. }
  14. else
  15. {
  16. WScript.Echo("FAILED");
  17. }