concat6.js 588 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 foo()
  6. {
  7. var s = "concat "+" string"+" test";
  8. for(var i=0;i<5;i++)
  9. {
  10. s = s+"dst same"+" as source";
  11. }
  12. s.charCodeAt(0);
  13. }
  14. foo();
  15. foo();
  16. foo();
  17. WScript.Echo("Passed");