inlineBuiltIns.js 729 B

12345678910111213141516171819202122
  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 assert(actual, expected)
  6. {
  7. if (actual !== expected)
  8. {
  9. throw new Error("failed test Actual: " + actual + " Expected: " + expected);
  10. }
  11. }
  12. function test0(s1, s2) {
  13. for(var i = 0; i < 1; ++i)
  14. s2 += s1.charAt( s1 = "k" + s1);
  15. assert(s2, "u");
  16. };
  17. test0("u", "");
  18. test0("u", "");
  19. WScript.Echo("PASSED");